aboutsummaryrefslogtreecommitdiff
path: root/src/paperflight/server.js
blob: 1f05de216aedb0758fa802b9c0e894cb41c8a8a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
function setUpRoutes(server, models, jwtFunctions, database) {
    server.get('/paperflight', (req, res) => res.sendFile(__dirname + "/index.html"))
    server.get('/paperflight/styles.css', (req, res) => res.sendFile(__dirname + "/static/styles.css"))
    server.get('/paperflight/levels.js', (req, res) => res.sendFile(__dirname + "/static/levels.js"))
    server.get('/paperflight/update.js', (req, res) => res.sendFile(__dirname + "/static/update.js"))
    server.get('/paperflight/draw.js', (req, res) => res.sendFile(__dirname + "/static/draw.js"))
}

module.exports = {
    setUpRoutes
};