feat(wip member dashboard)
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 26h10m31s
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 26h10m31s
This commit is contained in:
62
resources/js/routes/dashboard/index.ts
Normal file
62
resources/js/routes/dashboard/index.ts
Normal file
@@ -0,0 +1,62 @@
|
||||
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
|
||||
Reference in New Issue
Block a user