User posts

This commit is contained in:
2024-07-27 22:53:27 +02:00
parent a3ec9ae318
commit a950f6770a
6 changed files with 155 additions and 4 deletions
+2
View File
@@ -53,6 +53,8 @@ SimpleRouter::group(["middleware" => Khofmann\Auth\Auth::class], function () {
SimpleRouter::post("/logout", [Api\Logout\Logout::class, "post"]);
// Get user
SimpleRouter::get("/users/{id}", [Api\Users\Users::class, "get"]);
// Get user posts
SimpleRouter::get("/users/{id}/posts", [Api\Users\Posts\Posts::class, "get"]);
// Update self
SimpleRouter::patch("/users/self", [Api\Users\Users::class, "patchSelf"]);
// Update image self