diff --git a/index.pl b/index.pl
index eb4d62791427eadd8e18e0febddcb5877adff47c..7b84c4ada64effc27bfdfcef291fe42919c138b3 100755
--- a/index.pl
+++ b/index.pl
@@ -1233,6 +1233,6 @@ app->config(
 	},
 );
 
-app->types( json => 'application/json; charset=utf-8' );
+app->types->type( json => 'application/json; charset=utf-8' );
 
 app->start;