# All files / js/actions/App/Http/Controllers/Api LicenseValidationController.ts

0% Statements 0/25
100% Branches 0/0
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

     import { queryParams, type RouteQueryOptions, type RouteDefinition, type RouteFormDefinition } from './../../../../../wayfinder'
    /**
    * @see \App\Http\Controllers\Api\LicenseValidationController::validate
     * @see app/Http/Controllers/Api/LicenseValidationController.php:18
     * @route '/api/licenses/validate'
     */
    export const validate = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
        url: validate.url(options),
        method: 'post',
    })

    validate.definition = {
        methods: ["post"],
        url: '/api/licenses/validate',
    } satisfies RouteDefinition<["post"]>

    /**
    * @see \App\Http\Controllers\Api\LicenseValidationController::validate
     * @see app/Http/Controllers/Api/LicenseValidationController.php:18
     * @route '/api/licenses/validate'
     */
    validate.url = (options?: RouteQueryOptions) => {
        return validate.definition.url + queryParams(options)
    }

    /**
    * @see \App\Http\Controllers\Api\LicenseValidationController::validate
     * @see app/Http/Controllers/Api/LicenseValidationController.php:18
     * @route '/api/licenses/validate'
     */
    validate.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
        url: validate.url(options),
        method: 'post',
    })

        /**
    * @see \App\Http\Controllers\Api\LicenseValidationController::validate
     * @see app/Http/Controllers/Api/LicenseValidationController.php:18
     * @route '/api/licenses/validate'
     */
        const validateForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: validate.url(options),
            method: 'post',
        })

                /**
    * @see \App\Http\Controllers\Api\LicenseValidationController::validate
     * @see app/Http/Controllers/Api/LicenseValidationController.php:18
     * @route '/api/licenses/validate'
     */
            validateForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
                action: validate.url(options),
                method: 'post',
            })

        validate.form = validateForm
    /**
    * @see \App\Http\Controllers\Api\LicenseValidationController::reportVersion
     * @see app/Http/Controllers/Api/LicenseValidationController.php:76
     * @route '/api/licenses/report-version'
     */
    export const reportVersion = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
        url: reportVersion.url(options),
        method: 'post',
    })

    reportVersion.definition = {
        methods: ["post"],
        url: '/api/licenses/report-version',
    } satisfies RouteDefinition<["post"]>

    /**
    * @see \App\Http\Controllers\Api\LicenseValidationController::reportVersion
     * @see app/Http/Controllers/Api/LicenseValidationController.php:76
     * @route '/api/licenses/report-version'
     */
    reportVersion.url = (options?: RouteQueryOptions) => {
        return reportVersion.definition.url + queryParams(options)
    }

    /**
    * @see \App\Http\Controllers\Api\LicenseValidationController::reportVersion
     * @see app/Http/Controllers/Api/LicenseValidationController.php:76
     * @route '/api/licenses/report-version'
     */
    reportVersion.post = (options?: RouteQueryOptions): RouteDefinition<'post'> => ({
        url: reportVersion.url(options),
        method: 'post',
    })

        /**
    * @see \App\Http\Controllers\Api\LicenseValidationController::reportVersion
     * @see app/Http/Controllers/Api/LicenseValidationController.php:76
     * @route '/api/licenses/report-version'
     */
        const reportVersionForm = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
            action: reportVersion.url(options),
            method: 'post',
        })

                /**
    * @see \App\Http\Controllers\Api\LicenseValidationController::reportVersion
     * @see app/Http/Controllers/Api/LicenseValidationController.php:76
     * @route '/api/licenses/report-version'
     */
            reportVersionForm.post = (options?: RouteQueryOptions): RouteFormDefinition<'post'> => ({
                action: reportVersion.url(options),
                method: 'post',
            })

        reportVersion.form = reportVersionForm
    const LicenseValidationController = { validate, reportVersion }

    export default LicenseValidationController