Commit | Line | Data |
---|---|---|
298c42e6 | 1 | var router = require("express").Router(); |
deca03e8 BA |
2 | var access = require("../utils/access"); |
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")); |
00f2759e | 10 | //router.use("/", require("./games")); |
625022fd | 11 | router.use("/", require("./messages")); |
582df349 | 12 | router.use("/", require("./problems")); |
625022fd BA |
13 | router.use("/", require("./users")); |
14 | router.use("/", require("./variants")); | |
da06a6eb | 15 | |
1d184b4c | 16 | module.exports = router; |