wi-adrema-plugin/routes.php

10 lines
214 B
PHP
Raw Normal View History

2024-01-31 22:33:35 +01:00
<?php
2024-02-03 22:36:56 +01:00
use Silva\Adrema\Support\Proxy;
2024-01-31 22:33:35 +01:00
2024-02-03 22:36:56 +01:00
Route::get(
'/adrema-api/{route}',
fn (string $route) => Response::json(app(Proxy::class)->run($route))
)
->where('route', '[a-zA-Z0-9\-/]+')->middleware('api');