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
13 lines
347 B
var express = require('express'); |
|
var page = require('./bin/page'); |
|
var app = express(); |
|
|
|
app.use(express.static(__dirname + '/resources/public')); |
|
|
|
app.get('/api', function (req, res) { |
|
res.send(page.build("api")); |
|
}); |
|
|
|
var server = app.listen(3000, function () { |
|
console.log('NoteHub server listening on port %s', server.address().port); |
|
}); |