A pastebin for markdown pages.
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.

13 lines
347 B

11 years ago
var express = require('express');
var page = require('./src/page');
11 years ago
var app = express();
app.use(express.static(__dirname + '/resources/public'));
app.get('/api', function (req, res) {
res.send(page.build("api"));
});
11 years ago
var server = app.listen(3000, function () {
console.log('NoteHub server listening on port %s', server.address().port);
11 years ago
});