import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../wayfinder'
/**
* @see \App\Http\Controllers\PortalHomeController::__invoke
* @see app/Http/Controllers/PortalHomeController.php:14
* @route '/'
*/
const PortalHomeController = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: PortalHomeController.url(options),
    method: 'get',
})

PortalHomeController.definition = {
    methods: ["get","head"],
    url: '/',
} satisfies RouteDefinition<["get","head"]>

/**
* @see \App\Http\Controllers\PortalHomeController::__invoke
* @see app/Http/Controllers/PortalHomeController.php:14
* @route '/'
*/
PortalHomeController.url = (options?: RouteQueryOptions) => {
    return PortalHomeController.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\PortalHomeController::__invoke
* @see app/Http/Controllers/PortalHomeController.php:14
* @route '/'
*/
PortalHomeController.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: PortalHomeController.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\PortalHomeController::__invoke
* @see app/Http/Controllers/PortalHomeController.php:14
* @route '/'
*/
PortalHomeController.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: PortalHomeController.url(options),
    method: 'head',
})

/**
* @see \App\Http\Controllers\PortalHomeController::__invoke
* @see app/Http/Controllers/PortalHomeController.php:14
* @route '/'
*/
const PortalHomeControllerForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: PortalHomeController.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\PortalHomeController::__invoke
* @see app/Http/Controllers/PortalHomeController.php:14
* @route '/'
*/
PortalHomeControllerForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: PortalHomeController.url(options),
    method: 'get',
})

/**
* @see \App\Http\Controllers\PortalHomeController::__invoke
* @see app/Http/Controllers/PortalHomeController.php:14
* @route '/'
*/
PortalHomeControllerForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
    action: PortalHomeController.url({
        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
            _method: 'HEAD',
            ...(options?.query ?? options?.mergeQuery ?? {}),
        }
    }),
    method: 'get',
})

PortalHomeController.form = PortalHomeControllerForm

export default PortalHomeController