Better Errors
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user