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.
30 lines
513 B
30 lines
513 B
// dtp-sites.js
|
|
// Copryright (C) Digital Telepresence, LLC
|
|
// Licence: Apache-2.0
|
|
|
|
'use strict';
|
|
|
|
const express = require('express');
|
|
|
|
|
|
module.app = express();
|
|
|
|
module.getHome = async (req, res) => {
|
|
// res.send('Hello, world!');
|
|
return 0;
|
|
};
|
|
|
|
(async ( ) => {
|
|
try {
|
|
const result = await module.getHome();
|
|
console.log(result);
|
|
} catch (error) {
|
|
console.log(error);
|
|
}
|
|
})();
|
|
|
|
module.app.get('/', module.getHome);
|
|
|
|
module.app.listen(3000, 'localhost', ( ) => {
|
|
console.log('App started');
|
|
});
|