Show check(mate) indicators in moves list. No longer require the odd ?rid=... in...
[vchess.git] / server / routes / variants.js
... / ...
CommitLineData
1// Get variants list (always needed)
2
3let router = require("express").Router();
4const VariantModel = require("../models/Variant");
5const access = require("../utils/access");
6
7router.get('/variants', access.ajax, function(req, res) {
8 VariantModel.getAll((err,variants) => {
9 res.json(err || {variantArray:variants});
10 });
11});
12
13module.exports = router;