Refactor endgame process, start working on game end (abort)
[vchess.git] / server / routes / all.js
CommitLineData
298c42e6 1var router = require("express").Router();
deca03e8
BA
2var access = require("../utils/access");
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"));
00f2759e 10//router.use("/", require("./games"));
625022fd 11router.use("/", require("./messages"));
582df349 12router.use("/", require("./problems"));
625022fd
BA
13router.use("/", require("./users"));
14router.use("/", require("./variants"));
da06a6eb 15
1d184b4c 16module.exports = router;