Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. // src/routes/route.ts
  2.  
  3. import {Router} from "express";
  4.  
  5. abstract class Route {
  6. protected router = Router();
  7. protected abstract setRoutes(): void;
  8.  
  9. public getRouter() {
  10. return this.router;
  11. }
  12. }
  13.  
  14. export default Route;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement