Kopie van https://gitlab.com/studieverenigingvia/ict/centurion met een paar aanpassingen
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.
15 lines
380 B
15 lines
380 B
const express = require('express');
|
|
const state = require('./state.js');
|
|
const b = require('./b.js');
|
|
|
|
const PORT = 3002;
|
|
|
|
const app = express();
|
|
const server = app.listen(PORT, () => console.log(`Example app listening on port ${PORT}!`));
|
|
|
|
app.get('/', (req, res) => {
|
|
let i = state.a;
|
|
b.test(i += 1);
|
|
|
|
return res.send('<pre>' + JSON.stringify(state) + '</pre>')
|
|
});
|
|
|