opensupports/server/controllers/user/logout.php

11 lines
232 B
PHP

<?php
class LogoutController extends Controller {
const PATH = '/logout';
public function handler() {
$session = Session::getInstance();
$session->closeSession();
Response::respondSuccess();
}
}