Skip to content

Instantly share code, notes, and snippets.

@olbpetersson
Created October 18, 2016 17:04
Show Gist options
  • Save olbpetersson/38f8368232117dce3547587f7206cfdd to your computer and use it in GitHub Desktop.
Save olbpetersson/38f8368232117dce3547587f7206cfdd to your computer and use it in GitHub Desktop.
var express = require('express');
var app = express();
app.get('/', function (req, res) {
console.log("Security got a request!")
var data = require('./workspace/data.json')
res.send(data.data);
});
app.listen(3000, function () {
console.log('Example app listening on port 3000!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment