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

* Convert route options to fluent methods Laravel 8 adopts the tuple syntax for controller actions. Since the old options array is incompatible with this syntax, Shift converted them to use modern, fluent methods. * Slim `lang` files * Shift core files * Validate via object directly within Controllers * Use `Gate` facade for controller authorization * Dispatch jobs directly * Remove base controller inheritance * Default config files In an effort to make upgrading the constantly changing config files easier, Shift defaulted them and merged your true customizations - where ENV variables may not be used. * Set new `ENV` variables * Add new Laravel `composer run dev` script * Add `storage/app/private` folder * Bump Composer dependencies * Convert `$casts` property to method * Adopt Laravel type hints * Shift cleanup * Apply suggestions from code review Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com> * Add old key as backup * Update composer * Remove extra line * Update this --------- Co-authored-by: Shift <shift@laravelshift.com> Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com>
15 lines
470 B
PHP
15 lines
470 B
PHP
<?php
|
|
|
|
use Dedoc\Scramble\Scramble;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::prefix('api')->group(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');
|
|
});
|