update: api version

This commit is contained in:
v2board
2023-06-12 02:32:49 +08:00
parent 32eaf301fe
commit 4c97d7e429
74 changed files with 449 additions and 496 deletions

View File

@ -0,0 +1,19 @@
<?php
namespace App\Http\Routes\V1;
use Illuminate\Contracts\Routing\Registrar;
class ServerRoute
{
public function map(Registrar $router)
{
$router->group([
'prefix' => 'server'
], function ($router) {
$router->any('/{class}/{action}', function($class, $action) {
$ctrl = \App::make("\\App\\Http\\Controllers\\V1\\Server\\" . ucfirst($class) . "Controller");
return \App::call([$ctrl, $action]);
});
});
}
}