test_lgq/niucloud/app/api/route/file.php

33 lines
1.2 KiB
PHP
Raw Normal View History

2024-01-24 17:36:08 +08:00
<?php
// +----------------------------------------------------------------------
// | Niucloud-admin 企业快速开发的saas管理平台
// +----------------------------------------------------------------------
// | 官方网址https://www.niucloud-admin.com
// +----------------------------------------------------------------------
// | niucloud团队 版权所有 开源版本可自由商用
// +----------------------------------------------------------------------
// | Author: Niucloud Team
// +----------------------------------------------------------------------
use app\api\middleware\ApiChannel;
use app\api\middleware\ApiCheckToken;
use app\api\middleware\ApiLog;
use think\facade\Route;
/**
* 会员个人信息管理
*/
Route::group('file', function () {
/***************************************************** 会员管理 ****************************************************/
//上传图片
Route::post('image', 'upload.Upload/image');
//拉取图片
Route::post('image/fetch', 'upload.Upload/imageFetch');
//base64图片
Route::post('image/base64', 'upload.Upload/imageBase64');
})->middleware(ApiChannel::class)
->middleware(ApiCheckToken::class, true)
->middleware(ApiLog::class);