add default route

This commit is contained in:
Simon Vieille 2019-06-26 09:40:18 +02:00
parent 7718864077
commit e1cb5a212d
Signed by: deblan
GPG Key ID: 03383D15A1D31745
1 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,12 @@ function opengraph(string $url) : array
return json_decode(json_encode($object), true);
}
SimpleRouter::get('/', function() {
return response()
->httpCode(200)
->json([]);
});
SimpleRouter::get('/do/{parser}', function ($parser) {
$url = input()->get('url')->value;