projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
'update'
[vchess.git]
/
server
/
routes
/
challenges.js
diff --git
a/server/routes/challenges.js
b/server/routes/challenges.js
index
7675689
..
faa38c5
100644
(file)
--- a/
server/routes/challenges.js
+++ b/
server/routes/challenges.js
@@
-42,9
+42,10
@@
router.post("/challenges", access.logged, access.ajax, (req,res) => {
insertChallenge();
});
insertChallenge();
});
+// TODO: either like that, or remove challenge in /games POST ?
// "Challenge update" --> someone accepted a challenge
router.put("/challenges", access.logged, access.ajax, (req,res) => {
// "Challenge update" --> someone accepted a challenge
router.put("/challenges", access.logged, access.ajax, (req,res) => {
- // launchGame(cid, uid)
+ // launchGame(cid, uid)
//req.body.chall
// TODO: gather challenge infos
// Then create game, and remove challenge:
ChallengeModel.remove(cid, req.userId, err => {
// TODO: gather challenge infos
// Then create game, and remove challenge:
ChallengeModel.remove(cid, req.userId, err => {