SHARE
TWEET

Untitled

a guest Jul 24th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top