Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
minor cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Müller committed Jan 14, 2017
1 parent b2a0f2a commit b2fa8c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,7 +5,7 @@
"main": "server.js",
"scripts": {
"start": "node server.js",
"dev": "nodemon server.js",
"dev": "./node_modules/nodemon/bin/nodemon.js server.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
Expand Down
3 changes: 2 additions & 1 deletion resources/public/index.html
Expand Up @@ -33,7 +33,8 @@ <h2>Changelog</h2>
</ul>
</article>
<footer>
Source code @ <a href="https://github.com/chmllr/NoteHub">GitHub</a>
<a href="https://github.com/chmllr/NoteHub">source code</a> &middot;
<a href="/TOS">terms of service</a>
</footer>
</body>
</html>
3 changes: 1 addition & 2 deletions server.js
Expand Up @@ -10,6 +10,7 @@ var blackList;
var app = express();

app.use(bodyParser.urlencoded({ extended: true }));
app.use(express.static(__dirname + '/resources/public'));

var MODELS = {};
var CACHE = new LRU({
Expand All @@ -28,8 +29,6 @@ var getTimeStamp = () => {
return (timestamp).toString(16)
}

app.use(express.static(__dirname + '/resources/public'));

var log = function() {
var date = new Date();
var timestamp = date.getDate() + "/" + date.getMonth() + " " + date.getHours() + ":" +
Expand Down

0 comments on commit b2fa8c3

Please sign in to comment.