Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //src/main.controller.ts
- import { Application } from 'express';
- import { PokeService } from "./services/pokemon.service";
- export class Controller {
- private pokeService: PokeService;
- constructor(private app: Application) { this.pokeService = new PokeService(); this.routes();
- }
- public routes() { this.app.route("/").get(this.pokeService.welcomeMessage); }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement