IYUUPlus/config/static.php

24 lines
628 B
PHP
Raw Normal View History

2021-02-02 07:48:07 +00:00
<?php
/**
* This file is part of webman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* @link http://www.workerman.net/
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
/**
* 静态文件设置
*/
return [
2022-10-03 03:03:11 +00:00
'enable' => true, // 是否支持静态文件
2021-02-02 07:48:07 +00:00
'middleware' => [ // 静态文件中间件
2022-10-03 03:03:11 +00:00
app\middleware\StaticFile::class,
2021-02-02 07:48:07 +00:00
],
2021-09-05 06:45:46 +00:00
];