mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 04:04:45 +02:00

* update scramble * cleanup application api endpoints * cleanup client api endpoints * fix security schema and make docs homepage nicer * remove duplicate myclabs/deep-copy * style(api-docs): use Blade template and Tailwind for styling * Publish scramble view * Use localStorage theme instead of config * Update routes/docs.php Co-authored-by: Lance Pioch <git@lance.sh> --------- Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com> Co-authored-by: Lance Pioch <git@lance.sh>
15 lines
476 B
PHP
15 lines
476 B
PHP
<?php
|
|
|
|
use Dedoc\Scramble\Scramble;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::group(['prefix' => 'api'], function () {
|
|
Scramble::registerUiRoute(path: 'application', api: 'application');
|
|
Scramble::registerJsonSpecificationRoute(path: 'application.json', api: 'application');
|
|
|
|
Scramble::registerUiRoute(path: 'client', api: 'client');
|
|
Scramble::registerJsonSpecificationRoute(path: 'client.json', api: 'client');
|
|
|
|
Route::view('', 'docs.api-index');
|
|
});
|