MAPG-178 add endpoint that can send valid data based on started session
This commit is contained in:
1 parent
2f4f66cc94
commit
e7ee7bbe8e
2 files changed
+19
No files matched your search
@@ -13,6 +13,7 @@ if (!empty($_ENV['DEV'])) {
|
||||
Container::$routeCollection = new MapGuesser\Routing\RouteCollection();
|
||||
|
||||
Container::$routeCollection->get('index', '', [MapGuesser\Controller\MapsController::class, 'getMaps']);
|
||||
Container::$routeCollection->get('startSession', 'startSession.json', [MapGuesser\Controller\HomeController::class, 'startSession']);
|
||||
Container::$routeCollection->group('login', function (MapGuesser\Routing\RouteCollection $routeCollection) {
|
||||
$routeCollection->get('login', '', [MapGuesser\Controller\LoginController::class, 'getLoginForm']);
|
||||
$routeCollection->post('login-action', '', [MapGuesser\Controller\LoginController::class, 'login']);
|
||||
|
||||
Reference in new issue
Block a user