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

OrganizationSwitchController.definition = {
    methods: ["post"],
    url: '/organizations/switch',
} satisfies RouteDefinition<["post"]>

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

/**
* @see \App\Http\Controllers\OrganizationSwitchController::__invoke
* @see app/Http/Controllers/OrganizationSwitchController.php:13
* @route '/organizations/switch'
*/
OrganizationSwitchController.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: OrganizationSwitchController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\OrganizationSwitchController::__invoke
* @see app/Http/Controllers/OrganizationSwitchController.php:13
* @route '/organizations/switch'
*/
const OrganizationSwitchControllerForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: OrganizationSwitchController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\OrganizationSwitchController::__invoke
* @see app/Http/Controllers/OrganizationSwitchController.php:13
* @route '/organizations/switch'
*/
OrganizationSwitchControllerForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: OrganizationSwitchController.url(options),
    method: 'post',
})

OrganizationSwitchController.form = OrganizationSwitchControllerForm

export default OrganizationSwitchController