Rewrites and Formatting

This commit is contained in:
2024-07-22 03:34:56 +02:00
parent 3e22aaf30c
commit 20db2301cb
10 changed files with 28 additions and 56 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ SimpleRouter::post("/register", [Api\Register\Register::class, "post"]);
/*
* Normal Auth routes
*/
SimpleRouter::group(["middleware" => \Khofmann\Auth\Auth::class], function () {
SimpleRouter::group(["middleware" => Khofmann\Auth\Auth::class], function () {
// Login
SimpleRouter::post("/logout", [Api\Logout\Logout::class, "post"]);
// Get any user
@@ -33,7 +33,7 @@ SimpleRouter::group(["middleware" => \Khofmann\Auth\Auth::class], function () {
/*
* Admin Auth routes
*/
SimpleRouter::group(["middleware" => \Khofmann\Auth\AdminAuth::class], function () {
SimpleRouter::group(["middleware" => Khofmann\Auth\AdminAuth::class], function () {
// Update any user
SimpleRouter::patch("/user/{id}", [Api\User\User::class, "patch"]);
// Delete any user