Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import {Application, Request, Response} from "express";
- export class Routes {
- constructor(private app: Application) {
- }
- init() {
- this.app.get('/arkia-flights', (req: Request, res: Response): Object => {
- console.log(req);
- return res.json({status: "success", message: "You arrived to lala!"});
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement