feat(LRL App): init V0
This commit is contained in:
@@ -0,0 +1,197 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::create
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:20
|
||||
* @route '/login'
|
||||
*/
|
||||
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/login',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::create
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:20
|
||||
* @route '/login'
|
||||
*/
|
||||
create.url = (options?: RouteQueryOptions) => {
|
||||
return create.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::create
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:20
|
||||
* @route '/login'
|
||||
*/
|
||||
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::create
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:20
|
||||
* @route '/login'
|
||||
*/
|
||||
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: create.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::create
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:20
|
||||
* @route '/login'
|
||||
*/
|
||||
const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::create
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:20
|
||||
* @route '/login'
|
||||
*/
|
||||
createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::create
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:20
|
||||
* @route '/login'
|
||||
*/
|
||||
createForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.form = createForm
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::store
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:31
|
||||
* @route '/login'
|
||||
*/
|
||||
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.definition = {
|
||||
methods: ["post"],
|
||||
url: '/login',
|
||||
} satisfies RouteDefinition<["post"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::store
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:31
|
||||
* @route '/login'
|
||||
*/
|
||||
store.url = (options?: RouteQueryOptions) => {
|
||||
return store.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::store
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:31
|
||||
* @route '/login'
|
||||
*/
|
||||
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::store
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:31
|
||||
* @route '/login'
|
||||
*/
|
||||
const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::store
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:31
|
||||
* @route '/login'
|
||||
*/
|
||||
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.form = storeForm
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::destroy
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:54
|
||||
* @route '/logout'
|
||||
*/
|
||||
export const destroy = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: destroy.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
destroy.definition = {
|
||||
methods: ["post"],
|
||||
url: '/logout',
|
||||
} satisfies RouteDefinition<["post"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::destroy
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:54
|
||||
* @route '/logout'
|
||||
*/
|
||||
destroy.url = (options?: RouteQueryOptions) => {
|
||||
return destroy.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::destroy
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:54
|
||||
* @route '/logout'
|
||||
*/
|
||||
destroy.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: destroy.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::destroy
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:54
|
||||
* @route '/logout'
|
||||
*/
|
||||
const destroyForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: destroy.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\AuthenticatedSessionController::destroy
|
||||
* @see app/Http/Controllers/Auth/AuthenticatedSessionController.php:54
|
||||
* @route '/logout'
|
||||
*/
|
||||
destroyForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: destroy.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
destroy.form = destroyForm
|
||||
|
||||
const AuthenticatedSessionController = { create, store, destroy }
|
||||
|
||||
export default AuthenticatedSessionController
|
||||
@@ -0,0 +1,60 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationNotificationController::store
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationNotificationController.php:14
|
||||
* @route '/email/verification-notification'
|
||||
*/
|
||||
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.definition = {
|
||||
methods: ["post"],
|
||||
url: '/email/verification-notification',
|
||||
} satisfies RouteDefinition<["post"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationNotificationController::store
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationNotificationController.php:14
|
||||
* @route '/email/verification-notification'
|
||||
*/
|
||||
store.url = (options?: RouteQueryOptions) => {
|
||||
return store.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationNotificationController::store
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationNotificationController.php:14
|
||||
* @route '/email/verification-notification'
|
||||
*/
|
||||
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationNotificationController::store
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationNotificationController.php:14
|
||||
* @route '/email/verification-notification'
|
||||
*/
|
||||
const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationNotificationController::store
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationNotificationController.php:14
|
||||
* @route '/email/verification-notification'
|
||||
*/
|
||||
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.form = storeForm
|
||||
|
||||
const EmailVerificationNotificationController = { store }
|
||||
|
||||
export default EmailVerificationNotificationController
|
||||
@@ -0,0 +1,83 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationPromptController::__invoke
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationPromptController.php:16
|
||||
* @route '/verify-email'
|
||||
*/
|
||||
const EmailVerificationPromptController = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: EmailVerificationPromptController.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
EmailVerificationPromptController.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/verify-email',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationPromptController::__invoke
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationPromptController.php:16
|
||||
* @route '/verify-email'
|
||||
*/
|
||||
EmailVerificationPromptController.url = (options?: RouteQueryOptions) => {
|
||||
return EmailVerificationPromptController.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationPromptController::__invoke
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationPromptController.php:16
|
||||
* @route '/verify-email'
|
||||
*/
|
||||
EmailVerificationPromptController.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: EmailVerificationPromptController.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationPromptController::__invoke
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationPromptController.php:16
|
||||
* @route '/verify-email'
|
||||
*/
|
||||
EmailVerificationPromptController.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: EmailVerificationPromptController.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationPromptController::__invoke
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationPromptController.php:16
|
||||
* @route '/verify-email'
|
||||
*/
|
||||
const EmailVerificationPromptControllerForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: EmailVerificationPromptController.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationPromptController::__invoke
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationPromptController.php:16
|
||||
* @route '/verify-email'
|
||||
*/
|
||||
EmailVerificationPromptControllerForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: EmailVerificationPromptController.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\EmailVerificationPromptController::__invoke
|
||||
* @see app/Http/Controllers/Auth/EmailVerificationPromptController.php:16
|
||||
* @route '/verify-email'
|
||||
*/
|
||||
EmailVerificationPromptControllerForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: EmailVerificationPromptController.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
EmailVerificationPromptController.form = EmailVerificationPromptControllerForm
|
||||
|
||||
export default EmailVerificationPromptController
|
||||
@@ -0,0 +1,159 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::create
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||
* @route '/reset-password/{token}'
|
||||
*/
|
||||
export const create = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/reset-password/{token}',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::create
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||
* @route '/reset-password/{token}'
|
||||
*/
|
||||
create.url = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions) => {
|
||||
if (typeof args === 'string' || typeof args === 'number') {
|
||||
args = { token: args }
|
||||
}
|
||||
|
||||
if (Array.isArray(args)) {
|
||||
args = {
|
||||
token: args[0],
|
||||
}
|
||||
}
|
||||
|
||||
args = applyUrlDefaults(args)
|
||||
|
||||
const parsedArgs = {
|
||||
token: args.token,
|
||||
}
|
||||
|
||||
return create.definition.url
|
||||
.replace('{token}', parsedArgs.token.toString())
|
||||
.replace(/\/+$/, '') + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::create
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||
* @route '/reset-password/{token}'
|
||||
*/
|
||||
create.get = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::create
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||
* @route '/reset-password/{token}'
|
||||
*/
|
||||
create.head = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: create.url(args, options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::create
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||
* @route '/reset-password/{token}'
|
||||
*/
|
||||
const createForm = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::create
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||
* @route '/reset-password/{token}'
|
||||
*/
|
||||
createForm.get = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::create
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:23
|
||||
* @route '/reset-password/{token}'
|
||||
*/
|
||||
createForm.head = (args: { token: string | number } | [token: string | number ] | string | number, options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(args, {
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.form = createForm
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
||||
* @route '/reset-password'
|
||||
*/
|
||||
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.definition = {
|
||||
methods: ["post"],
|
||||
url: '/reset-password',
|
||||
} satisfies RouteDefinition<["post"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
||||
* @route '/reset-password'
|
||||
*/
|
||||
store.url = (options?: RouteQueryOptions) => {
|
||||
return store.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
||||
* @route '/reset-password'
|
||||
*/
|
||||
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
||||
* @route '/reset-password'
|
||||
*/
|
||||
const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\NewPasswordController::store
|
||||
* @see app/Http/Controllers/Auth/NewPasswordController.php:36
|
||||
* @route '/reset-password'
|
||||
*/
|
||||
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.form = storeForm
|
||||
|
||||
const NewPasswordController = { create, store }
|
||||
|
||||
export default NewPasswordController
|
||||
@@ -0,0 +1,141 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::create
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/forgot-password',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::create
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
create.url = (options?: RouteQueryOptions) => {
|
||||
return create.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::create
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::create
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: create.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::create
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::create
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::create
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:17
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
createForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.form = createForm
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::store
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.definition = {
|
||||
methods: ["post"],
|
||||
url: '/forgot-password',
|
||||
} satisfies RouteDefinition<["post"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::store
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
store.url = (options?: RouteQueryOptions) => {
|
||||
return store.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::store
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::store
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\PasswordResetLinkController::store
|
||||
* @see app/Http/Controllers/Auth/PasswordResetLinkController.php:29
|
||||
* @route '/forgot-password'
|
||||
*/
|
||||
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.form = storeForm
|
||||
|
||||
const PasswordResetLinkController = { create, store }
|
||||
|
||||
export default PasswordResetLinkController
|
||||
@@ -0,0 +1,141 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::create
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:21
|
||||
* @route '/register'
|
||||
*/
|
||||
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/register',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::create
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:21
|
||||
* @route '/register'
|
||||
*/
|
||||
create.url = (options?: RouteQueryOptions) => {
|
||||
return create.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::create
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:21
|
||||
* @route '/register'
|
||||
*/
|
||||
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::create
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:21
|
||||
* @route '/register'
|
||||
*/
|
||||
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: create.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::create
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:21
|
||||
* @route '/register'
|
||||
*/
|
||||
const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::create
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:21
|
||||
* @route '/register'
|
||||
*/
|
||||
createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::create
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:21
|
||||
* @route '/register'
|
||||
*/
|
||||
createForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.form = createForm
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::store
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:31
|
||||
* @route '/register'
|
||||
*/
|
||||
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.definition = {
|
||||
methods: ["post"],
|
||||
url: '/register',
|
||||
} satisfies RouteDefinition<["post"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::store
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:31
|
||||
* @route '/register'
|
||||
*/
|
||||
store.url = (options?: RouteQueryOptions) => {
|
||||
return store.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::store
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:31
|
||||
* @route '/register'
|
||||
*/
|
||||
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::store
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:31
|
||||
* @route '/register'
|
||||
*/
|
||||
const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\RegisteredUserController::store
|
||||
* @see app/Http/Controllers/Auth/RegisteredUserController.php:31
|
||||
* @route '/register'
|
||||
*/
|
||||
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.form = storeForm
|
||||
|
||||
const RegisteredUserController = { create, store }
|
||||
|
||||
export default RegisteredUserController
|
||||
@@ -0,0 +1,100 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition, applyUrlDefaults } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\VerifyEmailController::__invoke
|
||||
* @see app/Http/Controllers/Auth/VerifyEmailController.php:14
|
||||
* @route '/verify-email/{id}/{hash}'
|
||||
*/
|
||||
const VerifyEmailController = (args: { id: string | number, hash: string | number } | [id: string | number, hash: string | number ], options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: VerifyEmailController.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
VerifyEmailController.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/verify-email/{id}/{hash}',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\VerifyEmailController::__invoke
|
||||
* @see app/Http/Controllers/Auth/VerifyEmailController.php:14
|
||||
* @route '/verify-email/{id}/{hash}'
|
||||
*/
|
||||
VerifyEmailController.url = (args: { id: string | number, hash: string | number } | [id: string | number, hash: string | number ], options?: RouteQueryOptions) => {
|
||||
if (Array.isArray(args)) {
|
||||
args = {
|
||||
id: args[0],
|
||||
hash: args[1],
|
||||
}
|
||||
}
|
||||
|
||||
args = applyUrlDefaults(args)
|
||||
|
||||
const parsedArgs = {
|
||||
id: args.id,
|
||||
hash: args.hash,
|
||||
}
|
||||
|
||||
return VerifyEmailController.definition.url
|
||||
.replace('{id}', parsedArgs.id.toString())
|
||||
.replace('{hash}', parsedArgs.hash.toString())
|
||||
.replace(/\/+$/, '') + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\VerifyEmailController::__invoke
|
||||
* @see app/Http/Controllers/Auth/VerifyEmailController.php:14
|
||||
* @route '/verify-email/{id}/{hash}'
|
||||
*/
|
||||
VerifyEmailController.get = (args: { id: string | number, hash: string | number } | [id: string | number, hash: string | number ], options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: VerifyEmailController.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\VerifyEmailController::__invoke
|
||||
* @see app/Http/Controllers/Auth/VerifyEmailController.php:14
|
||||
* @route '/verify-email/{id}/{hash}'
|
||||
*/
|
||||
VerifyEmailController.head = (args: { id: string | number, hash: string | number } | [id: string | number, hash: string | number ], options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: VerifyEmailController.url(args, options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\VerifyEmailController::__invoke
|
||||
* @see app/Http/Controllers/Auth/VerifyEmailController.php:14
|
||||
* @route '/verify-email/{id}/{hash}'
|
||||
*/
|
||||
const VerifyEmailControllerForm = (args: { id: string | number, hash: string | number } | [id: string | number, hash: string | number ], options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: VerifyEmailController.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\VerifyEmailController::__invoke
|
||||
* @see app/Http/Controllers/Auth/VerifyEmailController.php:14
|
||||
* @route '/verify-email/{id}/{hash}'
|
||||
*/
|
||||
VerifyEmailControllerForm.get = (args: { id: string | number, hash: string | number } | [id: string | number, hash: string | number ], options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: VerifyEmailController.url(args, options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Auth\VerifyEmailController::__invoke
|
||||
* @see app/Http/Controllers/Auth/VerifyEmailController.php:14
|
||||
* @route '/verify-email/{id}/{hash}'
|
||||
*/
|
||||
VerifyEmailControllerForm.head = (args: { id: string | number, hash: string | number } | [id: string | number, hash: string | number ], options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: VerifyEmailController.url(args, {
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
VerifyEmailController.form = VerifyEmailControllerForm
|
||||
|
||||
export default VerifyEmailController
|
||||
19
resources/js/actions/App/Http/Controllers/Auth/index.ts
Normal file
19
resources/js/actions/App/Http/Controllers/Auth/index.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import AuthenticatedSessionController from './AuthenticatedSessionController'
|
||||
import RegisteredUserController from './RegisteredUserController'
|
||||
import PasswordResetLinkController from './PasswordResetLinkController'
|
||||
import NewPasswordController from './NewPasswordController'
|
||||
import EmailVerificationPromptController from './EmailVerificationPromptController'
|
||||
import VerifyEmailController from './VerifyEmailController'
|
||||
import EmailVerificationNotificationController from './EmailVerificationNotificationController'
|
||||
|
||||
const Auth = {
|
||||
AuthenticatedSessionController: Object.assign(AuthenticatedSessionController, AuthenticatedSessionController),
|
||||
RegisteredUserController: Object.assign(RegisteredUserController, RegisteredUserController),
|
||||
PasswordResetLinkController: Object.assign(PasswordResetLinkController, PasswordResetLinkController),
|
||||
NewPasswordController: Object.assign(NewPasswordController, NewPasswordController),
|
||||
EmailVerificationPromptController: Object.assign(EmailVerificationPromptController, EmailVerificationPromptController),
|
||||
VerifyEmailController: Object.assign(VerifyEmailController, VerifyEmailController),
|
||||
EmailVerificationNotificationController: Object.assign(EmailVerificationNotificationController, EmailVerificationNotificationController),
|
||||
}
|
||||
|
||||
export default Auth
|
||||
@@ -0,0 +1,141 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::create
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:17
|
||||
* @route '/contact'
|
||||
*/
|
||||
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/contact',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::create
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:17
|
||||
* @route '/contact'
|
||||
*/
|
||||
create.url = (options?: RouteQueryOptions) => {
|
||||
return create.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::create
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:17
|
||||
* @route '/contact'
|
||||
*/
|
||||
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::create
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:17
|
||||
* @route '/contact'
|
||||
*/
|
||||
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: create.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::create
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:17
|
||||
* @route '/contact'
|
||||
*/
|
||||
const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::create
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:17
|
||||
* @route '/contact'
|
||||
*/
|
||||
createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::create
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:17
|
||||
* @route '/contact'
|
||||
*/
|
||||
createForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.form = createForm
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::store
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:26
|
||||
* @route '/contact'
|
||||
*/
|
||||
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.definition = {
|
||||
methods: ["post"],
|
||||
url: '/contact',
|
||||
} satisfies RouteDefinition<["post"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::store
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:26
|
||||
* @route '/contact'
|
||||
*/
|
||||
store.url = (options?: RouteQueryOptions) => {
|
||||
return store.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::store
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:26
|
||||
* @route '/contact'
|
||||
*/
|
||||
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::store
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:26
|
||||
* @route '/contact'
|
||||
*/
|
||||
const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\ContactFormController::store
|
||||
* @see app/Http/Controllers/Forms/ContactFormController.php:26
|
||||
* @route '/contact'
|
||||
*/
|
||||
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.form = storeForm
|
||||
|
||||
const ContactFormController = { create, store }
|
||||
|
||||
export default ContactFormController
|
||||
@@ -0,0 +1,141 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::create
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:18
|
||||
* @route '/membership'
|
||||
*/
|
||||
export const create = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/membership',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::create
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:18
|
||||
* @route '/membership'
|
||||
*/
|
||||
create.url = (options?: RouteQueryOptions) => {
|
||||
return create.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::create
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:18
|
||||
* @route '/membership'
|
||||
*/
|
||||
create.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::create
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:18
|
||||
* @route '/membership'
|
||||
*/
|
||||
create.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: create.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::create
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:18
|
||||
* @route '/membership'
|
||||
*/
|
||||
const createForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::create
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:18
|
||||
* @route '/membership'
|
||||
*/
|
||||
createForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::create
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:18
|
||||
* @route '/membership'
|
||||
*/
|
||||
createForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: create.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
create.form = createForm
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::store
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:28
|
||||
* @route '/membership'
|
||||
*/
|
||||
export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.definition = {
|
||||
methods: ["post"],
|
||||
url: '/membership',
|
||||
} satisfies RouteDefinition<["post"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::store
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:28
|
||||
* @route '/membership'
|
||||
*/
|
||||
store.url = (options?: RouteQueryOptions) => {
|
||||
return store.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::store
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:28
|
||||
* @route '/membership'
|
||||
*/
|
||||
store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
|
||||
url: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::store
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:28
|
||||
* @route '/membership'
|
||||
*/
|
||||
const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Forms\MembershipFormController::store
|
||||
* @see app/Http/Controllers/Forms/MembershipFormController.php:28
|
||||
* @route '/membership'
|
||||
*/
|
||||
storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: store.url(options),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
store.form = storeForm
|
||||
|
||||
const MembershipFormController = { create, store }
|
||||
|
||||
export default MembershipFormController
|
||||
9
resources/js/actions/App/Http/Controllers/Forms/index.ts
Normal file
9
resources/js/actions/App/Http/Controllers/Forms/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import ContactFormController from './ContactFormController'
|
||||
import MembershipFormController from './MembershipFormController'
|
||||
|
||||
const Forms = {
|
||||
ContactFormController: Object.assign(ContactFormController, ContactFormController),
|
||||
MembershipFormController: Object.assign(MembershipFormController, MembershipFormController),
|
||||
}
|
||||
|
||||
export default Forms
|
||||
@@ -0,0 +1,151 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::edit
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:18
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
export const edit = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: edit.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
edit.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/settings/password',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::edit
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:18
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
edit.url = (options?: RouteQueryOptions) => {
|
||||
return edit.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::edit
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:18
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
edit.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: edit.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::edit
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:18
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
edit.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: edit.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::edit
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:18
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
const editForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: edit.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::edit
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:18
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
editForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: edit.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::edit
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:18
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
editForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: edit.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
edit.form = editForm
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::update
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:26
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
export const update = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
|
||||
url: update.url(options),
|
||||
method: 'put',
|
||||
})
|
||||
|
||||
update.definition = {
|
||||
methods: ["put"],
|
||||
url: '/settings/password',
|
||||
} satisfies RouteDefinition<["put"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::update
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:26
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
update.url = (options?: RouteQueryOptions) => {
|
||||
return update.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::update
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:26
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
update.put = (options?: RouteQueryOptions): RouteDefinition<'put'> => ({
|
||||
url: update.url(options),
|
||||
method: 'put',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::update
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:26
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
const updateForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: update.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'PUT',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\PasswordController::update
|
||||
* @see app/Http/Controllers/Settings/PasswordController.php:26
|
||||
* @route '/settings/password'
|
||||
*/
|
||||
updateForm.put = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: update.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'PUT',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
update.form = updateForm
|
||||
|
||||
const PasswordController = { edit, update }
|
||||
|
||||
export default PasswordController
|
||||
@@ -0,0 +1,217 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::edit
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:19
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
export const edit = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: edit.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
edit.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/settings/profile',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::edit
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:19
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
edit.url = (options?: RouteQueryOptions) => {
|
||||
return edit.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::edit
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:19
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
edit.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: edit.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::edit
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:19
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
edit.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: edit.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::edit
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:19
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
const editForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: edit.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::edit
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:19
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
editForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: edit.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::edit
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:19
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
editForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: edit.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
edit.form = editForm
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::update
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:30
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
export const update = (options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
|
||||
url: update.url(options),
|
||||
method: 'patch',
|
||||
})
|
||||
|
||||
update.definition = {
|
||||
methods: ["patch"],
|
||||
url: '/settings/profile',
|
||||
} satisfies RouteDefinition<["patch"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::update
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:30
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
update.url = (options?: RouteQueryOptions) => {
|
||||
return update.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::update
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:30
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
update.patch = (options?: RouteQueryOptions): RouteDefinition<'patch'> => ({
|
||||
url: update.url(options),
|
||||
method: 'patch',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::update
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:30
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
const updateForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: update.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'PATCH',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::update
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:30
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
updateForm.patch = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: update.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'PATCH',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
update.form = updateForm
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::destroy
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:46
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
export const destroy = (options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
|
||||
url: destroy.url(options),
|
||||
method: 'delete',
|
||||
})
|
||||
|
||||
destroy.definition = {
|
||||
methods: ["delete"],
|
||||
url: '/settings/profile',
|
||||
} satisfies RouteDefinition<["delete"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::destroy
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:46
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
destroy.url = (options?: RouteQueryOptions) => {
|
||||
return destroy.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::destroy
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:46
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
destroy.delete = (options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
|
||||
url: destroy.url(options),
|
||||
method: 'delete',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::destroy
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:46
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
const destroyForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: destroy.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'DELETE',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\ProfileController::destroy
|
||||
* @see app/Http/Controllers/Settings/ProfileController.php:46
|
||||
* @route '/settings/profile'
|
||||
*/
|
||||
destroyForm.delete = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
|
||||
action: destroy.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'DELETE',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'post',
|
||||
})
|
||||
|
||||
destroy.form = destroyForm
|
||||
|
||||
const ProfileController = { edit, update, destroy }
|
||||
|
||||
export default ProfileController
|
||||
@@ -0,0 +1,85 @@
|
||||
import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\TwoFactorAuthenticationController::show
|
||||
* @see app/Http/Controllers/Settings/TwoFactorAuthenticationController.php:28
|
||||
* @route '/settings/two-factor'
|
||||
*/
|
||||
export const show = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: show.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
show.definition = {
|
||||
methods: ["get","head"],
|
||||
url: '/settings/two-factor',
|
||||
} satisfies RouteDefinition<["get","head"]>
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\TwoFactorAuthenticationController::show
|
||||
* @see app/Http/Controllers/Settings/TwoFactorAuthenticationController.php:28
|
||||
* @route '/settings/two-factor'
|
||||
*/
|
||||
show.url = (options?: RouteQueryOptions) => {
|
||||
return show.definition.url + queryParams(options)
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\TwoFactorAuthenticationController::show
|
||||
* @see app/Http/Controllers/Settings/TwoFactorAuthenticationController.php:28
|
||||
* @route '/settings/two-factor'
|
||||
*/
|
||||
show.get = (options?: RouteQueryOptions): RouteDefinition<'get'> => ({
|
||||
url: show.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\TwoFactorAuthenticationController::show
|
||||
* @see app/Http/Controllers/Settings/TwoFactorAuthenticationController.php:28
|
||||
* @route '/settings/two-factor'
|
||||
*/
|
||||
show.head = (options?: RouteQueryOptions): RouteDefinition<'head'> => ({
|
||||
url: show.url(options),
|
||||
method: 'head',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\TwoFactorAuthenticationController::show
|
||||
* @see app/Http/Controllers/Settings/TwoFactorAuthenticationController.php:28
|
||||
* @route '/settings/two-factor'
|
||||
*/
|
||||
const showForm = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: show.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\TwoFactorAuthenticationController::show
|
||||
* @see app/Http/Controllers/Settings/TwoFactorAuthenticationController.php:28
|
||||
* @route '/settings/two-factor'
|
||||
*/
|
||||
showForm.get = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: show.url(options),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
/**
|
||||
* @see \App\Http\Controllers\Settings\TwoFactorAuthenticationController::show
|
||||
* @see app/Http/Controllers/Settings/TwoFactorAuthenticationController.php:28
|
||||
* @route '/settings/two-factor'
|
||||
*/
|
||||
showForm.head = (options?: RouteQueryOptions): RouteFormDefinition<'get'> => ({
|
||||
action: show.url({
|
||||
[options?.mergeQuery ? 'mergeQuery' : 'query']: {
|
||||
_method: 'HEAD',
|
||||
...(options?.query ?? options?.mergeQuery ?? {}),
|
||||
}
|
||||
}),
|
||||
method: 'get',
|
||||
})
|
||||
|
||||
show.form = showForm
|
||||
|
||||
const TwoFactorAuthenticationController = { show }
|
||||
|
||||
export default TwoFactorAuthenticationController
|
||||
11
resources/js/actions/App/Http/Controllers/Settings/index.ts
Normal file
11
resources/js/actions/App/Http/Controllers/Settings/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import ProfileController from './ProfileController'
|
||||
import PasswordController from './PasswordController'
|
||||
import TwoFactorAuthenticationController from './TwoFactorAuthenticationController'
|
||||
|
||||
const Settings = {
|
||||
ProfileController: Object.assign(ProfileController, ProfileController),
|
||||
PasswordController: Object.assign(PasswordController, PasswordController),
|
||||
TwoFactorAuthenticationController: Object.assign(TwoFactorAuthenticationController, TwoFactorAuthenticationController),
|
||||
}
|
||||
|
||||
export default Settings
|
||||
11
resources/js/actions/App/Http/Controllers/index.ts
Normal file
11
resources/js/actions/App/Http/Controllers/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import Auth from './Auth'
|
||||
import Settings from './Settings'
|
||||
import Forms from './Forms'
|
||||
|
||||
const Controllers = {
|
||||
Auth: Object.assign(Auth, Auth),
|
||||
Settings: Object.assign(Settings, Settings),
|
||||
Forms: Object.assign(Forms, Forms),
|
||||
}
|
||||
|
||||
export default Controllers
|
||||
7
resources/js/actions/App/Http/index.ts
Normal file
7
resources/js/actions/App/Http/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import Controllers from './Controllers'
|
||||
|
||||
const Http = {
|
||||
Controllers: Object.assign(Controllers, Controllers),
|
||||
}
|
||||
|
||||
export default Http
|
||||
Reference in New Issue
Block a user