// "User" is the BaseEndpoint ("/user")
User: {
Actions: {
// Resolves to "/user/[0-9]+/settings"
Settings: new RouteDB({
// Merge the parameters of the Parent The path requires the "uid" parameter// Merge the parameters of the Parent The path requires the "uid" parameter
Merge: true,
...
}),
// Resolves to "/user/[0-9]+""/": new RouteDB({
Scheme: '/:uid', // The path requires the "uid" parameter
...
}),
},
Errors: {
// Denies "/auth" & "/auth/"
BAD_REQ: ['/']
},
}
A collection of
Data-Requests
for aBaseEndpoint
. ABaseEndpoint
represents a Namespace for any number of relatedEndpoints
.Examples:
// "User" is the BaseEndpoint ("/user") User: { Actions: { // Resolves to "/user/[0-9]+/settings" Settings: new RouteDB({ // Merge the parameters of the Parent The path requires the "uid" parameter // Merge the parameters of the Parent The path requires the "uid" parameter Merge: true, ... }), // Resolves to "/user/[0-9]+" "/": new RouteDB({ Scheme: '/:uid', // The path requires the "uid" parameter ... }), }, Errors: { // Denies "/auth" & "/auth/" BAD_REQ: ['/'] }, }