This commit is contained in:
Torsten 2024-12-22 15:51:00 +01:00
parent 6b926d3afe
commit b716ab5836
4 changed files with 3 additions and 10 deletions

View file

@ -9,7 +9,7 @@ service('auth')->routes($routes)
```php
// API routes (put below service('auth'))
$routes->group("api", ["namespace" => "App\Controller\Api"], function($routes) {
$routes->group("api", ["namespace" => "App\Controllers\Api"], function($routes) {
$routes->post("register", "AuthController::register");
$routes->post("login", "AuthController::login");
$routes->get("profile", "AuthController::profile");