The Base Class for the Route Configurators.
A GET handler for this Route path.
A POST handler for this Route path.
A PUT handler for this Route path.
A DELETE handler for this Route path.
A MID handler for this Route path.
The name of this route.
The HTTP-Methods that this Endpoint can be called with. This can be exploited to allow a single-hanlder
(GET, for example) repsond to other HMETHODs (such as, POST).
A list of the heirarchy Endpoints contained within it's Base that it belongs under.
By default, any Endpoint defined within a BasePoint -- except, of course, for "/" --
is a direct descendant of "/", as "/" is just the definition of the BasePoint without
any other paths following it. But obviously there are needs to push the heirarchy further.
Instead of forcing developers to use a Parant > Child structure that would get very annoying, very
fast, heirarchies are defined using this property. As was said earlier, "/", is inherited by all
other Endpoints contained with a BaseEndpoint, so it doesn't need to be add here. If the
Endpoint in question is to remain a direct descendant of "/", then this need not be defined.
Depending on whether or not Merge is configured, the path will be resolved differently.
({
User: {
Actions: {
Email: new RouteDB({
Scheme: '/',
Merge: true,
Subs: ['settings'], // defined, child of "Settings", Merge
// Resolves to "/user/settings/:sttg_id/email"
}),
Privacy: new RouteDB({
Scheme: '/:uid/',
Subs: ['settings'], // defined, child of "Settings", no Merge
// Resolves to "/user/settings/privacy/:uid"
}),
Settings: new RouteDB({
Scheme: '/:sttg_id/', ...
// Sub not defined, is child of "/", no Merge
}),
"/": new RouteDB({
Scheme: '/:uid/', ...
// Resolves to "/user/:uid"
}),
}
}
});
A list of Request Paths used for linking RouteDB requests.
global use: Data.Routemethod use: Data.Methodtrue, if this Endpoint is restricted to Admins.
global use: (Auth|Data).Routemethod use: (Auth|Data).MethodIf true, this configuration is now immutable.
Locks the current configuration, permanetly.
The Base Class for the Route Configurators.