oc-adrema-plugin/routes.php

10 lines
214 B
PHP

<?php
use Silva\Adrema\Support\Proxy;
Route::get(
'/adrema-api/{route}',
fn (string $route) => Response::json(app(Proxy::class)->run($route))
)
->where('route', '[a-zA-Z0-9\-/]+')->middleware('api');