diff options
Diffstat (limited to 'dist/app.js')
| -rw-r--r-- | dist/app.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/dist/app.js b/dist/app.js new file mode 100644 index 0000000..7e34ef9 --- /dev/null +++ b/dist/app.js @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const express = require("express"); +class App { + constructor() { + this.express = express(); + this.mountRoutes(); + } + mountRoutes() { + const router = express.Router(); + router.get('/', (req, res) => { + res.json({ + message: 'Hello World!' + }); + }); + this.express.use('/', router); + } +} +exports.default = new App().express; |
