1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- use Illuminate\Http\Request;
- /*
- |--------------------------------------------------------------------------
- | API Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register API routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | is assigned the "api" middleware group. Enjoy building your API!
- |
- */
- /** @var TYPE_NAME $api */
- $api = app('Dingo\Api\Routing\Router');
- $api->version('v1',[
- 'namespace'=>'App\Http\Controllers'
- ],function ($api){
- $api->post('admin/login','AdminController@login');
- $api->get('captcha','TestController@image');
- $api->post('login','TestController@login');
- $api->get('users/me','TestController@me');
- $api->get('menus/routes','TestController@routes');
- $api->group(['middleware' => 'check_token'], function ($api) {
- $api->get('Apply/GetApplyList','AdminController@GetApplyList');
- $api->get('Apply/SearchInfo','AdminController@SearchInfo');
- $api->post('Apply/AddUserInfo','AdminController@AddUserInfo');
- $api->get('Apply/DelApply','AdminController@DelApply');
- $api->group(['prefix' => 'ApplyDel'], function ($api) {
- $api->get('GetApplyList','ApplyDelController@GetApplyList');
- $api->get('SearchInfo','ApplyDelController@SearchInfo');
- $api->post('AddUserInfo','ApplyDelController@AddUserInfo');
- $api->get('DelApply','ApplyDelController@DelApply');
- $api->get('Examine','ApplyDelController@Examine');
- $api->post('UploadFile','ApplyDelController@UploadFile');
- $api->post('UploadFileMedia','ApplyDelController@UploadFileMedia');
- });
- });
- });
|