feature: staff permission

This commit is contained in:
Tokumeikoi
2020-09-19 22:52:05 +08:00
parent d500769bd7
commit f0f636c722
10 changed files with 152 additions and 5 deletions

View File

@ -0,0 +1,20 @@
<?php
namespace App\Http\Routes;
use Illuminate\Contracts\Routing\Registrar;
class StaffRoute
{
public function map(Registrar $router)
{
$router->group([
'prefix' => 'staff',
'middleware' => 'staff'
], function ($router) {
// Ticket
$router->get ('/ticket/fetch', 'Staff\\TicketController@fetch');
$router->post('/ticket/reply', 'Staff\\TicketController@reply');
$router->post('/ticket/close', 'Staff\\TicketController@close');
});
}
}