Files
roxane/resources/js/routes/dashboard/index.ts
Nebulae aea22e72af
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 26h10m31s
feat(wip member dashboard)
2026-04-08 15:17:05 +02:00

62 lines
2.0 KiB
TypeScript

import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../wayfinder'
/**
* @see \App\Http\Controllers\DashboardController::serviceActivation
* @see app/Http/Controllers/DashboardController.php:30
* @route '/dashboard/service-activation'
*/
export const serviceActivation = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
url: serviceActivation.url(options),
method: 'post',
})
serviceActivation.definition = {
methods: ["post"],
url: '/dashboard/service-activation',
} satisfies RouteDefinition<["post"]>
/**
* @see \App\Http\Controllers\DashboardController::serviceActivation
* @see app/Http/Controllers/DashboardController.php:30
* @route '/dashboard/service-activation'
*/
serviceActivation.url = (options?: RouteQueryOptions) => {
return serviceActivation.definition.url + queryParams(options)
}
/**
* @see \App\Http\Controllers\DashboardController::serviceActivation
* @see app/Http/Controllers/DashboardController.php:30
* @route '/dashboard/service-activation'
*/
serviceActivation.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
url: serviceActivation.url(options),
method: 'post',
})
/**
* @see \App\Http\Controllers\DashboardController::serviceActivation
* @see app/Http/Controllers/DashboardController.php:30
* @route '/dashboard/service-activation'
*/
const serviceActivationForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
action: serviceActivation.url(options),
method: 'post',
})
/**
* @see \App\Http\Controllers\DashboardController::serviceActivation
* @see app/Http/Controllers/DashboardController.php:30
* @route '/dashboard/service-activation'
*/
serviceActivationForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
action: serviceActivation.url(options),
method: 'post',
})
serviceActivation.form = serviceActivationForm
const dashboard = {
serviceActivation: Object.assign(serviceActivation, serviceActivation),
}
export default dashboard