sipp
Version:
An Opinionated, High-Productivity MVC Web Framework in TypeScript
18 lines • 669 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UrlProvider = void 0;
const framework_1 = require("../framework");
const http_1 = require("../http");
const http_2 = require("../http");
class UrlProvider extends framework_1.ServiceProvider {
constructor(staticPath, routeMapper) {
super();
this.staticPath = staticPath;
this.routeMapper = routeMapper;
}
register(register) {
register([http_2.Controller, http_1.Middleware, http_1.View], http_1.Url, () => new http_1.Url(this.staticPath, this.routeMapper));
}
}
exports.UrlProvider = UrlProvider;
//# sourceMappingURL=UrlProvider.js.map