import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
/**
* @see \App\Http\Controllers\Wp\HandshakeController::__invoke
* @see app/Http/Controllers/Wp/HandshakeController.php:26
* @route '/api/v1/wp/handshake'
*/
const HandshakeController = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: HandshakeController.url(options),
    method: 'post',
})

HandshakeController.definition = {
    methods: ["post"],
    url: '/api/v1/wp/handshake',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Wp\HandshakeController::__invoke
* @see app/Http/Controllers/Wp/HandshakeController.php:26
* @route '/api/v1/wp/handshake'
*/
HandshakeController.url = (options?: RouteQueryOptions) => {
    return HandshakeController.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Wp\HandshakeController::__invoke
* @see app/Http/Controllers/Wp/HandshakeController.php:26
* @route '/api/v1/wp/handshake'
*/
HandshakeController.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: HandshakeController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Wp\HandshakeController::__invoke
* @see app/Http/Controllers/Wp/HandshakeController.php:26
* @route '/api/v1/wp/handshake'
*/
const HandshakeControllerForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: HandshakeController.url(options),
    method: 'post',
})

/**
* @see \App\Http\Controllers\Wp\HandshakeController::__invoke
* @see app/Http/Controllers/Wp/HandshakeController.php:26
* @route '/api/v1/wp/handshake'
*/
HandshakeControllerForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
    action: HandshakeController.url(options),
    method: 'post',
})

HandshakeController.form = HandshakeControllerForm

export default HandshakeController