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
|
||||
Reference in New Issue
Block a user