12345678910111213141516171819202122232425262728 |
- <?php
- // +----------------------------------------------------------------------
- // | [ WE CAN DO IT MORE SIMPLE ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2018-2020 rights reserved.
- // +----------------------------------------------------------------------
- // |
- // +----------------------------------------------------------------------
- // | Date: 2020-08-30 14:41
- // +----------------------------------------------------------------------
- use think\facade\Route;
- //@上传
- Route::group('upload', function () {
- //@图片文件
- Route::post('index','upload/index');
- //@上传视频
- Route::post('mp4','upload/mp4');
- //@文件上传
- Route::post('uploadFile','upload/uploadFile');
- //@上传证书
- Route::post('uploadCertFile','upload/uploadCertFile');
-
- })->middleware([
- \app\system\middleware\AllowOriginMiddleware::class,
- \app\system\middleware\AdminAuthTokenMiddleware::class
- // \app\adminapi\middleware\AdminCkeckRole::class
- ]);
|