projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replaced AJAX by fetch: not everything tested yet, but seems fine
[vchess.git]
/
server
/
routes
/
problems.js
diff --git
a/server/routes/problems.js
b/server/routes/problems.js
index
64c173a
..
732ea71
100644
(file)
--- a/
server/routes/problems.js
+++ b/
server/routes/problems.js
@@
-22,7
+22,7
@@
router.post("/problems", access.logged, access.ajax, (req,res) => {
res.json({});
});
res.json({});
});
-router.get("/problems", (req,res) => {
+router.get("/problems",
access.ajax,
(req,res) => {
const probId = req.query["pid"];
if (probId && probId.match(/^[0-9]+$/))
{
const probId = req.query["pid"];
if (probId && probId.match(/^[0-9]+$/))
{