This commit is contained in:
+3
-1
@@ -2,6 +2,7 @@ const express = require('express');
|
||||
const helmet = require('helmet');
|
||||
const app = express();
|
||||
const PORT = process.env.PORT || 3000;
|
||||
const version = require('./lib/version').version();
|
||||
|
||||
const api = require('./api');
|
||||
|
||||
@@ -12,5 +13,6 @@ app.use(helmet({
|
||||
app.use('/', api.router);
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`🚀 Badge API running at http://localhost:${PORT}/`);
|
||||
console.log(`[ ${new Date()} ] [ 🚀 BadgeDex version: ${version} ]`);
|
||||
console.log(`[ ${new Date()} ] [ 🚀 BadgeDex API running at http://localhost:${PORT}/ ]`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user