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