login新增Service

This commit is contained in:
JaguarJack
2020-06-24 08:47:46 +08:00
parent 23fa6ab097
commit 8b4404df55
9 changed files with 55 additions and 6 deletions

View File

@@ -1,6 +1,9 @@
<?php
# 登入
$router->post('login', '\catchAdmin\login\controller\Index@login');
$router->post('logout', '\catchAdmin\login\controller\Index@logout');
$router->post('refresh/token', '\catchAdmin\login\controller\Index@refreshToken');
$router->group(function () use ($router){
# 登入
$router->post('login', '\catchAdmin\login\controller\Index@login');
$router->post('logout', '\catchAdmin\login\controller\Index@logout');
$router->post('refresh/token', '\catchAdmin\login\controller\Index@refreshToken');
})->middleware('auth');