projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement notifyAllBut()
[vchess.git]
/
server
/
routes
/
variants.js
diff --git
a/server/routes/variants.js
b/server/routes/variants.js
index
57d4a30
..
3f7417e
100644
(file)
--- a/
server/routes/variants.js
+++ b/
server/routes/variants.js
@@
-4,7
+4,7
@@
let router = require("express").Router();
const VariantModel = require("../models/Variant");
const access = require("../utils/access");
const VariantModel = require("../models/Variant");
const access = require("../utils/access");
-router.get('/variants', function(req, res) {
+router.get('/variants',
access.ajax,
function(req, res) {
VariantModel.getAll((err,variants) => {
res.json(err || {variantArray:variants});
});
VariantModel.getAll((err,variants) => {
res.json(err || {variantArray:variants});
});