Variables
BASE_CTRLS_PATH
BASE_CTRLS_PATH: string = path.join(__dirname, ctrl_path)
BASE_FILTERS_PATH
BASE_FILTERS_PATH: string = path.join(__dirname, filter_path)
Delete
Delete: Function = routeDecoratorFactory('delete')
Get
Get: Function = routeDecoratorFactory('get')
Logger
Logger: LoggerInstance = SimpleLogger.getInstance()
Post
Post: Function = routeDecoratorFactory('post')
Put
Put: Function = routeDecoratorFactory('put')
SENTRY_RELEASE
SENTRY_RELEASE: any = process.env.SENTRY_RELEASE ? process.env.SENTRY_RELEASE : (() => {try {return Git.long();} catch (error) {}})()
Schema
Schema: Schema = mongoose.Schema
ctrl_path
ctrl_path: "../../../api/controllers" = "../../../api/controllers"
filter_path
filter_path: "../../../api/filters" = "../../../api/filters"
The @Delete route decorator.
{Function}
The route to be assigned to the decorated method.
The filters to be called before the decorated method.