public function __construct($app)
 {
     $app->post('/rest/logout/', function () use($app) {
         $token = $app->request->headers("auth-token");
         if (!isset($token) || empty($token)) {
             $app->error();
         }
         AuthRepository::removeToken($token);
     });
 }