UNPKG

airship-server

Version:

Airship is a framework for Node.JS & TypeScript that helps you to write big, scalable and maintainable API servers.

28 lines 931 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("reflect-metadata"); function queryPath(path, type) { return (target) => { let constructor = target; if (!constructor.queryPath) constructor.queryPath = {}; if (!constructor.queryPath[constructor.name]) constructor.queryPath[constructor.name] = path; type = type || 'post'; if (!constructor.queryType) constructor.queryType = {}; if (!constructor.queryType[constructor.name]) constructor.queryType[constructor.name] = type; }; } exports.queryPath = queryPath; class ASRequest { static getQueryPath() { return this.queryPath[this.prototype.constructor.name]; } static getQueryType() { return this.queryType[this.prototype.constructor.name]; } } exports.ASRequest = ASRequest; //# sourceMappingURL=Request.js.map