-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.js
31 lines (24 loc) · 1.09 KB
/
api.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
* Servidor
* @author Edhine
*/
'use strict';
var listEndpoints = require('express-list-endpoints');
var app = require('./app');
// Servidor Express
app.listen(process.env.PORT_WEB, () => {
logger.info('-----------------------------------------------------------');
logger.info('\t\t Servidor Base Express');
logger.info('\t\t Autor: Edhine');
logger.info('-----------------------------------------------------------\n');
logger.info('-----------------------------------------------------------');
logger.info(`\t Servidor WEB OK: Puerto ${process.env.PORT_WEB}`);
logger.info('-----------------------------------------------------------\n');
logger.debug('----------------------------------------------------------');
logger.debug(`\t\t Paginas Disponibles`);
logger.debug('----------------------------------------------------------');
listEndpoints(app).forEach(function (route, index) {
logger.debug(`${index + 1}.- ${JSON.stringify(route)}`);
});
logger.debug('----------------------------------------------------------');
});