a890e609179e2adf3a8a7ce6834c9b18b7025279
[vchess.git] / server / routes / all.js
1 var router = require("express").Router();
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 });
8
9 router.use("/", require("./challenges"));
10 router.use("/", require("./games"));
11 router.use("/", require("./messages"));
12 router.use("/", require("./users"));
13 router.use("/", require("./variants"));
14
15 module.exports = router;