diff --git a/server/server.ts b/server/server.ts index 21f8de2..de0c08c 100644 --- a/server/server.ts +++ b/server/server.ts @@ -1,9 +1,9 @@ import * as express from 'express'; -import {Application} from "express"; -import {getAllCourses, getCourseById} from "./get-courses.route"; -import {searchLessons} from "./search-lessons.route"; +import {Application} from 'express'; +import {getAllCourses, getCourseById} from './get-courses.route'; +import {searchLessons} from './search-lessons.route'; const app: Application = express(); @@ -18,8 +18,8 @@ app.route('/api/lessons').get(searchLessons); -const httpServer:any = app.listen(9000, () => { - console.log("HTTP REST API Server running at http://localhost:" + httpServer.address().port); +const httpServer = app.listen(9000, () => { + console.log('HTTP REST API Server running at http://localhost:' + httpServer.address()['port']); });