35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
<?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
|
|
*/
|
|
|
|
use Webman\Route;
|
|
|
|
// 页面路由 - 重定向到静态HTML
|
|
Route::get('/', [app\controller\IndexController::class, 'index']);
|
|
Route::get('/roi', [app\controller\IndexController::class, 'roi']);
|
|
|
|
// API路由
|
|
Route::get('/streams', [app\controller\IndexController::class, 'streams']);
|
|
Route::get('/status', [app\controller\IndexController::class, 'status']);
|
|
Route::get('/getRoi', [app\controller\IndexController::class, 'getRoi']);
|
|
Route::post('/saveRoi', [app\controller\IndexController::class, 'saveRoi']);
|
|
|
|
// ZLM截图代理
|
|
Route::get('/proxy/zlm/snap', [app\controller\IndexController::class, 'proxyZlmSnap']);
|
|
|
|
|
|
|
|
|
|
|
|
|