The type of Method
this Route-Query pertains to.
A RegexP
, string
-representation of the Route
Path.
global
use: (Auth|Data).Routemethod
use: (Auth|Data).MethodA flag the specifies whether or not, and if so, how to prepend the path-parameters
of the last parent
-Endpoint
referenced in Sub (along with the merge of its own parent
; if applicable) to the path-name/parameters
of this Endpoint
:
true
, the Scheme from the parent
-Endpoint
will be prepended to this Scheme
of this Endpoint
.parent
-Endpoint's
CBRouteAU/CBRouteDB definition of the same HMETHOD. Otherwise, it choose the first
Scheme found within each parent
.method
(see: Uses below), and set to true
, then the system will look for that method
deinition within the parent
and choose that Scheme. Otherwise, the first Scheme found
is chosen.({
User: {
Actions: {
Password: new RouteDB({
Merge: true,
Subs: ['settings','privacy'], // Child of "Settings"
GET: () => ({ ... }), // Merge to "Privacy.GET"
// ^ Resolves to "/user/:uid/settings/privacy/:prv_id/password"
}),
Email: new RouteDB({
Merge: 'POST', // Merge to "Privacy.POST"
Subs: ['settings','privacy'], // Child of "Settings"
GET: () => ({ ... }),
// ^ Resolves to "/user/:uid/settings/privacy/email"
}),
Privacy: new RouteDB({
Scheme: '/:prv_id/', // Defult for any Method defined within
Subs: ['settings'], // Child of "Settings".
Merge: true,
GET: () => ({ ... }),
// ^ Merge to "Settings.GET",
// ^ Resolves to "/user/:uid/settings/privacy/:prv_id"
POST: () => ({ Scheme: '/' })
// ^ Merge to "Settings.GET", Scheme redefined to "/"
// ^ Resolves to "/user/:uid/settings/privacy"
}),
Settings: new RouteDB({
Merge: true,
GET: () => ({ ... }),
// ^ Sub not defined, is child of "/"
// ^ Resolves to "/user/:uid/settings"
}),
"/": new RouteDB({
Scheme: '/:uid/',
GET: () => ({ ... }),
// ^ Resolves to "/user/:uid"
}),
}
}
});
global
: (Auth|Data).Routemethod
: (Auth|Data).MethodA list of Limits
to subscribe to.
global
use: (Auth|Data).Routemethod
use: (Auth|Data).MethodThe documentation for Methods
in this Route
.
global
use: (Auth|Data).Routemethod
use: (Auth|Data).MethodThe collection of handlers for an Auth.Method.
Either an Array
of Strings
that form a SQL query, or A callback
that retrieves/updates
backned data for an Data.Method.
true
, if this Endpoint is restricted to Admins.
global
use: (Auth|Data).Routemethod
use: (Auth|Data).MethodThe base path
of the GNRoute
.
The base path
of the GNRoute
.
The full path
of the GNRoute
.
The full path
of the GNRoute
.
A digestible scheme pattern.
A RegExp
pattern to match this scheme.
Creates a digestible scheme pattern given the path
argument. This used internally
within the Path setter
.
The path pattern to convert.
A scheme pattern.
A request-method configurator for RouteAU/DB requests-paths.