Prep autoloader

This commit is contained in:
2024-07-21 12:32:11 +02:00
parent e9407c6c72
commit 976313305f
4 changed files with 40 additions and 3 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ SimpleRouter::all("/", function () {
SimpleRouter::post("/login", [Api\Login\Login::class, "post"]);
SimpleRouter::post("/logout", [Api\Logout\Logout::class, "post"]);
// User
SimpleRouter::group(["middleware" => \Api\Auth\Auth::class], function () {
SimpleRouter::group(["middleware" => \Khofmann\Auth\Auth::class], function () {
SimpleRouter::get("/user/{id}", function ($userID) {
echo "USER ENDP $userID";
});