Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. //src/main.controller.ts
  2. import { Application } from 'express';
  3. import { PokeService } from "./services/pokemon.service";
  4. export class Controller {
  5. private pokeService: PokeService;
  6.  
  7. constructor(private app: Application) { this.pokeService = new PokeService(); this.routes();
  8. }
  9. public routes() { this.app.route("/").get(this.pokeService.welcomeMessage); }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement