aboutsummaryrefslogtreecommitdiff
path: root/src/math/server.js
blob: e68a41ba94330d7e876568b6820397041b77e8ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const path = require('path');
const fs = require('fs');
const express = require('express');

function setUpRoutes(server, models, jwtFunctions, database) {
    server.get('/math', (req, res) => res.sendFile(__dirname + "/index.html"))
    server.get('/math/styles.css', (req, res) => res.sendFile(__dirname + "/static/styles.css"))
    server.use('/math/static', express.static(__dirname + '/static'))
}

module.exports = {
    setUpRoutes
};