Nexus API Reference

RouteGroup
in package

FinalYes
Tags
psalm-api

Group of routes sharing a prefix and middleware stack. Created via HttpApp::group(); routes added here are committed back to the parent collection with prefix + group MWs prepended.

Table of Contents

Methods

__construct()  : mixed
commit()  : array<int, Route>
delete()  : RouteBuilder
get()  : RouteBuilder
middleware()  : self
patch()  : RouteBuilder
post()  : RouteBuilder
put()  : RouteBuilder

Methods

__construct()

public __construct(string $prefix) : mixed
Parameters
$prefix : string

middleware()

public middleware(string $class) : self
Parameters
$class : string
Return values
self

        
On this page

Search results