<?php
// +----------------------------------------------------------------------
// | 麦沃德科技赋能开发者,助力中小企业发展
// +----------------------------------------------------------------------
// | Copyright (c) 2017～2024  www.wdadmin.cn    All rights reserved.
// +----------------------------------------------------------------------
// | Wdadmin系统产品软件并不是自由软件,不加密,并不代表开源,未经许可不可自由转售和商用
// +----------------------------------------------------------------------
// | Author: MY WORLD Team <bd@maiwd.cn>   www.wdadmin.cn
// +----------------------------------------------------------------------
use think\facade\Route;

// Swagger API 文档路由
Route::group('swagger', function () {
    // Swagger UI 页面
    Route::get('ui', 'app\adminapi\controller\SwaggerController@ui');
    // Swagger JSON 数据
    Route::get('json', 'app\adminapi\controller\SwaggerController@json');
})->allowCrossDomain();

// 素材中心路由
//Route::group('material', function () {
//    // 分类
//    Route::get('category/tree', 'app\adminapi\controller\material\MaterialCategoryController@tree');
//    Route::post('category/add', 'app\adminapi\controller\material\MaterialCategoryController@add');
//    Route::post('category/edit', 'app\adminapi\controller\material\MaterialCategoryController@edit');
//    Route::post('category/delete', 'app\adminapi\controller\material\MaterialCategoryController@delete');
//
//    // 素材
//    Route::post('file/add', 'app\adminapi\controller\material\MaterialController@add');
//    Route::get('file/lists', 'app\adminapi\controller\material\MaterialController@lists');
//    Route::get('file/detail', 'app\adminapi\controller\material\MaterialController@detail');
//    Route::post('file/delete', 'app\adminapi\controller\material\MaterialController@delete');
//    Route::post('file/move', 'app\adminapi\controller\material\MaterialController@move');
//})->allowCrossDomain();
