Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //src/main.controller.ts
- import { Application } from 'express';
- export class Controller {
- constructor(private app: Application) {
- this.routes();
- }
- public routes() {
- this.app.route("/").get();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement