projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Bario checkmate by capturing an undefined piece
[vchess.git]
/
server
/
routes
/
all.js
diff --git
a/server/routes/all.js
b/server/routes/all.js
index
fbf3433
..
b7dcc1a
100644
(file)
--- a/
server/routes/all.js
+++ b/
server/routes/all.js
@@
-1,16
+1,10
@@
-var router = require("express").Router();
-var access = require("../utils/access");
-
-// To avoid a weird preflight AJAX request error in dev mode...
-router.get("/", access.ajax, (req,res) => {
- res.json({});
-});
+let router = require("express").Router();
router.use("/", require("./challenges"));
router.use("/", require("./games"));
router.use("/", require("./messages"));
router.use("/", require("./challenges"));
router.use("/", require("./games"));
router.use("/", require("./messages"));
-router.use("/", require("./problems"));
router.use("/", require("./users"));
router.use("/", require("./variants"));
router.use("/", require("./users"));
router.use("/", require("./variants"));
+router.use("/", require("./problems"));
module.exports = router;
module.exports = router;