@igea/oac_frontend 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -6,7 +6,10 @@ const path = require("path");
|
|
|
6
6
|
const serviceName = "frontend"
|
|
7
7
|
|
|
8
8
|
const app = express();
|
|
9
|
+
|
|
10
|
+
app.use(express.static(path.join(__dirname, 'public')));
|
|
9
11
|
app.use(express.json());
|
|
12
|
+
|
|
10
13
|
app.set('view engine', 'twig');
|
|
11
14
|
app.set('views', path.join(__dirname, 'views'));
|
|
12
15
|
|
|
@@ -14,6 +17,7 @@ getPort.default({
|
|
|
14
17
|
port: getPort.portNumbers(config.port_range.min, config.port_range.max) }
|
|
15
18
|
).then((newPort)=>{
|
|
16
19
|
|
|
20
|
+
// Defining routers
|
|
17
21
|
const healthRouter = require('./controllers/health.js');
|
|
18
22
|
app.use('/health', healthRouter);
|
|
19
23
|
|
|
@@ -22,6 +26,7 @@ getPort.default({
|
|
|
22
26
|
res.render('base', { title: 'Home Page', message: 'Hello from Twig!' });
|
|
23
27
|
});
|
|
24
28
|
|
|
29
|
+
// Start listing on the specified port
|
|
25
30
|
app.listen(newPort, async () => {
|
|
26
31
|
console.log(`${serviceName} listening on port ${newPort}`);
|
|
27
32
|
try {
|
package/src/public/css/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sourceRoot":"","sources":["../../scss/_typography.scss","../../scss/_variables.scss"],"names":[],"mappings":"AAGA;EACI,aCFS;EDGT","file":"style.css"}
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../scss/_typography.scss","../../scss/_variables.scss"],"names":[],"mappings":"AAGA;EACI,aCFS;EDGT;EACA,OCNY","file":"style.css"}
|