2026-04-10 11:00:56 +02:00
|
|
|
import { queryParams, type RouteQueryOptions, type RouteDefinition } from './../../../wayfinder'
|
2025-10-22 17:09:48 +02:00
|
|
|
/**
|
|
|
|
|
* @see \Filament\Pages\Dashboard::__invoke
|
|
|
|
|
* @see vendor/filament/filament/src/Pages/Dashboard.php:7
|
|
|
|
|
* @route '/admin'
|
|
|
|
|
*/
|
|
|
|
|
const Dashboard = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
|
|
|
|
url: Dashboard.url(options),
|
|
|
|
|
method: 'get',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
Dashboard.definition = {
|
|
|
|
|
methods: ["get","head"],
|
|
|
|
|
url: '/admin',
|
|
|
|
|
} satisfies RouteDefinition<["get","head"]>
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @see \Filament\Pages\Dashboard::__invoke
|
|
|
|
|
* @see vendor/filament/filament/src/Pages/Dashboard.php:7
|
|
|
|
|
* @route '/admin'
|
|
|
|
|
*/
|
|
|
|
|
Dashboard.url = (options?: RouteQueryOptions) => {
|
|
|
|
|
return Dashboard.definition.url + queryParams(options)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @see \Filament\Pages\Dashboard::__invoke
|
|
|
|
|
* @see vendor/filament/filament/src/Pages/Dashboard.php:7
|
|
|
|
|
* @route '/admin'
|
|
|
|
|
*/
|
|
|
|
|
Dashboard.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
|
|
|
|
url: Dashboard.url(options),
|
|
|
|
|
method: 'get',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @see \Filament\Pages\Dashboard::__invoke
|
|
|
|
|
* @see vendor/filament/filament/src/Pages/Dashboard.php:7
|
|
|
|
|
* @route '/admin'
|
|
|
|
|
*/
|
|
|
|
|
Dashboard.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
|
|
|
|
url: Dashboard.url(options),
|
|
|
|
|
method: 'head',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default Dashboard
|