nodejs-express-server.controller.mustache Maven / Gradle / Ivy
The newest version!
const Controller = require('./Controller');
class {{{classname}}}Controller {
constructor(Service) {
this.service = Service;
}
{{#operations}}
{{#operation}}
async {{operationId}}(request, response) {
await Controller.handleRequest(request, response, this.service.{{operationId}});
}
{{/operation}}
}
module.exports = {{classname}}Controller;
{{/operations}}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy