# All files / js/actions/Laravel/Fortify/Http/Controllers TwoFactorAuthenticationController.ts

0% Statements 0/25
0% Branches 0/10
0% Functions 0/10
0% Lines 0/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124

     import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
    /**
    * @see \Laravel\Fortify\Http\Controllers\TwoFactorAuthenticationController::store
     * @see vendor/laravel/fortify/src/Http/Controllers/TwoFactorAuthenticationController.php:21
     * @route '/user/two-factor-authentication'
     */
    export const store = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
        url: store.url(options),
        method: 'post',
    })

    store.definition = {
        methods: ["post"],
        url: '/user/two-factor-authentication',
    } satisfies RouteDefinition<["post"]>

    /**
    * @see \Laravel\Fortify\Http\Controllers\TwoFactorAuthenticationController::store
     * @see vendor/laravel/fortify/src/Http/Controllers/TwoFactorAuthenticationController.php:21
     * @route '/user/two-factor-authentication'
     */
    store.url = (options?: RouteQueryOptions) => {
        return store.definition.url + queryParams(options)
    }

    /**
    * @see \Laravel\Fortify\Http\Controllers\TwoFactorAuthenticationController::store
     * @see vendor/laravel/fortify/src/Http/Controllers/TwoFactorAuthenticationController.php:21
     * @route '/user/two-factor-authentication'
     */
    store.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
        url: store.url(options),
        method: 'post',
    })

        /**
    * @see \Laravel\Fortify\Http\Controllers\TwoFactorAuthenticationController::store
     * @see vendor/laravel/fortify/src/Http/Controllers/TwoFactorAuthenticationController.php:21
     * @route '/user/two-factor-authentication'
     */
        const storeForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: store.url(options),
            method: 'post',
        })

                /**
    * @see \Laravel\Fortify\Http\Controllers\TwoFactorAuthenticationController::store
     * @see vendor/laravel/fortify/src/Http/Controllers/TwoFactorAuthenticationController.php:21
     * @route '/user/two-factor-authentication'
     */
            storeForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
                action: store.url(options),
                method: 'post',
            })

        store.form = storeForm
    /**
    * @see \Laravel\Fortify\Http\Controllers\TwoFactorAuthenticationController::destroy
     * @see vendor/laravel/fortify/src/Http/Controllers/TwoFactorAuthenticationController.php:35
     * @route '/user/two-factor-authentication'
     */
    export const destroy = (options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
        url: destroy.url(options),
        method: 'delete',
    })

    destroy.definition = {
        methods: ["delete"],
        url: '/user/two-factor-authentication',
    } satisfies RouteDefinition<["delete"]>

    /**
    * @see \Laravel\Fortify\Http\Controllers\TwoFactorAuthenticationController::destroy
     * @see vendor/laravel/fortify/src/Http/Controllers/TwoFactorAuthenticationController.php:35
     * @route '/user/two-factor-authentication'
     */
    destroy.url = (options?: RouteQueryOptions) => {
        return destroy.definition.url + queryParams(options)
    }

    /**
    * @see \Laravel\Fortify\Http\Controllers\TwoFactorAuthenticationController::destroy
     * @see vendor/laravel/fortify/src/Http/Controllers/TwoFactorAuthenticationController.php:35
     * @route '/user/two-factor-authentication'
     */
    destroy.delete = (options?: RouteQueryOptions): RouteDefinition<'delete'> => ({
        url: destroy.url(options),
        method: 'delete',
    })

        /**
    * @see \Laravel\Fortify\Http\Controllers\TwoFactorAuthenticationController::destroy
     * @see vendor/laravel/fortify/src/Http/Controllers/TwoFactorAuthenticationController.php:35
     * @route '/user/two-factor-authentication'
     */
        const destroyForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: destroy.url({
                        [options?.mergeQuery ? 'mergeQuery' : 'query']: {
                            _method: 'DELETE',
                            ...(options?.query ?? options?.mergeQuery ?? {}),
                        }
                    }),
            method: 'post',
        })

                /**
    * @see \Laravel\Fortify\Http\Controllers\TwoFactorAuthenticationController::destroy
     * @see vendor/laravel/fortify/src/Http/Controllers/TwoFactorAuthenticationController.php:35
     * @route '/user/two-factor-authentication'
     */
            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 TwoFactorAuthenticationController = { store, destroy }

    export default TwoFactorAuthenticationController