import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../wayfinder'
/**
* @see \App\Http\Controllers\Settings\BrandingController::apply
 * @see app/Http/Controllers/Settings/BrandingController.php:69
 * @route '/settings/branding/backgrounds'
 */
export const apply = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: apply.url(options),
    method: 'post',
})

apply.definition = {
    methods: ["post"],
    url: '/settings/branding/backgrounds',
} satisfies RouteDefinition<["post"]>

/**
* @see \App\Http\Controllers\Settings\BrandingController::apply
 * @see app/Http/Controllers/Settings/BrandingController.php:69
 * @route '/settings/branding/backgrounds'
 */
apply.url = (options?: RouteQueryOptions) => {
    return apply.definition.url + queryParams(options)
}

/**
* @see \App\Http\Controllers\Settings\BrandingController::apply
 * @see app/Http/Controllers/Settings/BrandingController.php:69
 * @route '/settings/branding/backgrounds'
 */
apply.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
    url: apply.url(options),
    method: 'post',
})

    /**
* @see \App\Http\Controllers\Settings\BrandingController::apply
 * @see app/Http/Controllers/Settings/BrandingController.php:69
 * @route '/settings/branding/backgrounds'
 */
    const applyForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
        action: apply.url(options),
        method: 'post',
    })

            /**
* @see \App\Http\Controllers\Settings\BrandingController::apply
 * @see app/Http/Controllers/Settings/BrandingController.php:69
 * @route '/settings/branding/backgrounds'
 */
        applyForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: apply.url(options),
            method: 'post',
        })
    
    apply.form = applyForm
const backgrounds = {
    apply: Object.assign(apply, apply),
}

export default backgrounds