You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
485 B
24 lines
485 B
// dtp-sites.js
|
|
// Copryright (C) Digital Telepresence, LLC
|
|
// Licence: Apache-2.0
|
|
|
|
'use strict';
|
|
|
|
const path = require('path');
|
|
|
|
const express = require('express');
|
|
|
|
const { HomeController } = require(path.join(__dirname, 'app', 'controllers', 'home.js'));
|
|
|
|
(async ( ) => {
|
|
|
|
module.app = express();
|
|
|
|
const home = new HomeController();
|
|
|
|
module.app.get('/', home.getHome.bind(home));
|
|
|
|
module.app.listen(3000, 'localhost', ( ) => {
|
|
console.log('App started');
|
|
});
|
|
})();
|