aboutsummaryrefslogtreecommitdiff
path: root/src/paperflight/server.js
blob: ee63ff83c6f398859781e7c274046e869bb86d52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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"))
    server.get('/paperflight/items.js', (req, res) => res.sendFile(__dirname + "/static/items.js"))
    server.get('/paperflight/util.js', (req, res) => res.sendFile(__dirname + "/static/util.js"))
}

module.exports = {
    setUpRoutes
};