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

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

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

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

    /**
* @see \App\Http\Controllers\AuthController::welcome
 * @see app/Http/Controllers/AuthController.php:12
 * @route '/'
 */
    const welcomeForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: welcome.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\AuthController::welcome
 * @see app/Http/Controllers/AuthController.php:12
 * @route '/'
 */
        welcomeForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: welcome.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\AuthController::welcome
 * @see app/Http/Controllers/AuthController.php:12
 * @route '/'
 */
        welcomeForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: welcome.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    welcome.form = welcomeForm
/**
* @see \App\Http\Controllers\AuthController::checkUsername
 * @see app/Http/Controllers/AuthController.php:22
 * @route '/username-check'
 */
export const checkUsername = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: checkUsername.url(options),
    method: 'get',
})

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

/**
* @see \App\Http\Controllers\AuthController::checkUsername
 * @see app/Http/Controllers/AuthController.php:22
 * @route '/username-check'
 */
checkUsername.url = (options?: RouteQueryOptions) => {
    return checkUsername.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\AuthController::checkUsername
 * @see app/Http/Controllers/AuthController.php:22
 * @route '/username-check'
 */
checkUsername.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
    url: checkUsername.url(options),
    method: 'get',
})
/**
* @see \App\Http\Controllers\AuthController::checkUsername
 * @see app/Http/Controllers/AuthController.php:22
 * @route '/username-check'
 */
checkUsername.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
    url: checkUsername.url(options),
    method: 'head',
})

    /**
* @see \App\Http\Controllers\AuthController::checkUsername
 * @see app/Http/Controllers/AuthController.php:22
 * @route '/username-check'
 */
    const checkUsernameForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
        action: checkUsername.url(options),
        method: 'get',
    })

            /**
* @see \App\Http\Controllers\AuthController::checkUsername
 * @see app/Http/Controllers/AuthController.php:22
 * @route '/username-check'
 */
        checkUsernameForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: checkUsername.url(options),
            method: 'get',
        })
            /**
* @see \App\Http\Controllers\AuthController::checkUsername
 * @see app/Http/Controllers/AuthController.php:22
 * @route '/username-check'
 */
        checkUsernameForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
            action: checkUsername.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'HEAD',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'get',
        })
    
    checkUsername.form = checkUsernameForm
const AuthController = { welcome, checkUsername }

export default AuthController