diff --git a/api/routes/web.php b/api/routes/web.php index 45f2a90..0972449 100644 --- a/api/routes/web.php +++ b/api/routes/web.php @@ -14,8 +14,8 @@ */ $router->group(['prefix' => 'api'], function () use ($router) { - $router->get('version', function () use ($router) { - return $router->app->version(); + $router->get('/', function () use ($router) { + return response()->json(['name' => 'Som v rade.sk API', 'version' => '1.1.1']); }); $router->get('collectionpoints', 'CollectionPointsController@showAll'); $router->get('collectionpoints/{id}', 'CollectionPointsController@showOne');