Endpoints

This commit is contained in:
2024-07-22 21:38:21 +02:00
parent 5251c43a6b
commit 700faf4351
10 changed files with 367 additions and 158 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class Logout extends Api
{
public function post(): void
{
$token = Request::header("token");
$token = Request::token();
Response::json(User::getByToken($token)->logOut());
}