Advertisement
Guest User

routes.ts

a guest
Nov 17th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import {Application, Request, Response} from "express";
  2.  
  3. export class Routes {
  4.  
  5. constructor(private app: Application) {
  6. }
  7.  
  8. init() {
  9. this.app.get('/arkia-flights', (req: Request, res: Response): Object => {
  10. console.log(req);
  11. return res.json({status: "success", message: "You arrived to lala!"});
  12. });
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement