Commit | Line | Data |
---|---|---|
fe4c7e67 BA |
1 | let router = require("express").Router(); |
2 | const access = require("../utils/access"); | |
deca03e8 BA |
3 | |
4 | // To avoid a weird preflight AJAX request error in dev mode... | |
5 | router.get("/", access.ajax, (req,res) => { | |
6 | res.json({}); | |
7 | }); | |
1d184b4c | 8 | |
625022fd | 9 | router.use("/", require("./challenges")); |
25996aed | 10 | router.use("/", require("./games")); |
625022fd | 11 | router.use("/", require("./messages")); |
625022fd BA |
12 | router.use("/", require("./users")); |
13 | router.use("/", require("./variants")); | |
da06a6eb | 14 | |
1d184b4c | 15 | module.exports = router; |