You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
filepizza/server/app.js

15 lines
331 B
JavaScript

var express = require('express');
var app = module.exports = express();
var db = require('./db');
var greeting = 'Hello World!';
db.child('greeting').on('value', function(snapshot) {
greeting = snapshot.val();
});
app.get('/', function (req, res) {
res.send(greeting);
});
app.use(express.static(__dirname + '/../static'));