getPerms API calls.
このコミットが含まれているのは:
コミット
0edfe58551
|
@ -34,6 +34,12 @@ class AuthController extends Controller {
|
|||
return $check->id;
|
||||
}
|
||||
|
||||
public function getPerms(Request $request) { // /api/auth/getpermissions
|
||||
$check = $this->getPermissions($request->username, $request->password);
|
||||
|
||||
return array($check);
|
||||
}
|
||||
|
||||
public function getPermissions($user, $pass) {
|
||||
$check = $this->checkLegit($user, $pass);
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ $api = app('Dingo\Api\Routing\Router');
|
|||
|
||||
$api->version('v1', function ($api) {
|
||||
$api->group(['namespace' => 'App\Http\Controllers'], function ($api) {
|
||||
$api->post('/auth/getpermissions', 'AuthController@getPerms');
|
||||
$api->post('/auth/login', 'AuthController@login');
|
||||
$api->post('/auth/register', 'AuthController@register');
|
||||
$api->post('/auth/recover', 'AuthController@recover');
|
||||
|
|
新しいイシューから参照