add default route
This commit is contained in:
parent
7718864077
commit
e1cb5a212d
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue