A collection of Auth-Requests for a Base-Endpoint. A BaseEndpoint represents a Namespace for any number of related Endpoints.
Auth-Requests
Base-Endpoint
BaseEndpoint
Endpoints
// "Auth" is the BaseEndpoint ("/auth") Auth: { Actions: { // Resolves to "/auth/login" Login: new RouteAU({ ... }), // Resolves to "/auth/logout" Logout: new RouteAU({ ... }), }, Errors: { // Denies "/auth" & "/auth/" BAD_REQ: ['/'] }, }
Where each related Endpoint is defined.
Endpoint
A plain-object used to define any list paths that are invalid and the HTTP_MSG that should be sent to the end-user.
paths
HTTP_MSG
A collection of
Auth-Requests
for aBase-Endpoint
. ABaseEndpoint
represents a Namespace for any number of relatedEndpoints
.Examples:
// "Auth" is the BaseEndpoint ("/auth") Auth: { Actions: { // Resolves to "/auth/login" Login: new RouteAU({ ... }), // Resolves to "/auth/logout" Logout: new RouteAU({ ... }), }, Errors: { // Denies "/auth" & "/auth/" BAD_REQ: ['/'] }, }