Better Errors

This commit is contained in:
2024-07-23 01:12:05 +02:00
parent 30849019af
commit 85d20e034a
18 changed files with 567 additions and 390 deletions
+2
View File
@@ -11,8 +11,10 @@ class Logout extends Api
{
public function post(): void
{
// Get user auth token.
$token = Request::token();
// Log out.
Response::json(User::getByToken($token)->logOut());
}
}