projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes, work on Eightpieces draft, add a few capturing variants
[vchess.git]
/
server
/
routes
/
all.js
diff --git
a/server/routes/all.js
b/server/routes/all.js
index
45eb21b
..
0c02129
100644
(file)
--- a/
server/routes/all.js
+++ b/
server/routes/all.js
@@
-1,16
+1,12
@@
-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();
+const access = require("../utils/access");
router.use("/", require("./challenges"));
router.use("/", require("./challenges"));
-
//
router.use("/", require("./games"));
+router.use("/", require("./games"));
router.use("/", require("./messages"));
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"));
+router.use("/", require("./news"));
module.exports = router;
module.exports = router;