Nexus API Reference

Route
in package

Read onlyYes
FinalYes
Tags
psalm-api

Declare an HTTP route on an action class. Repeatable: one class may declare multiple endpoints.

Table of Contents

Properties

$method  : string
$middleware  : array<string|int, mixed>
$name  : string|null
$path  : string

Methods

__construct()  : mixed

Attributes

#[Attribute]

#[Attribute]

Properties

$method

public string $method

$middleware

public array<string|int, mixed> $middleware = []

$name

public string|null $name = null

Methods

__construct()

public __construct(string $method, string $path[, string|null $name = null ][, array<int, string> $middleware = [] ]) : mixed
Parameters
$method : string
$path : string
$name : string|null = null
$middleware : array<int, string> = []

        
On this page

Search results