import { Router , Request , Response } from 'express' ; import container from '../dependency-injection' ; export const register = ( router ) => { const coursePutController = container . get ( 'Apps.mooc.controllers.CoursePutController' ) ; router . put ( '/courses/:id' , ( req , res ) => coursePutController . run ( req , res ) ) ; const coursesCounterGetController = container . get ( 'Apps.mooc.controllers.CoursesCounterGetController' ) ; router . get ( '/courses-counter' , ( req , res ) => coursesCounterGetController . run ( req , res ) ) ; } ;