Fix targetted challenge deletion on server when refused
[vchess.git] / server / routes / variants.js
CommitLineData
625022fd
BA
1// Get variants list (always needed)
2
3let router = require("express").Router();
625022fd
BA
4const VariantModel = require("../models/Variant");
5const access = require("../utils/access");
6
f0c68a04 7router.get('/variants', function(req, res) {
dac39588 8 VariantModel.getAll((err,variants) => {
866842c3 9 res.json(err || {variantArray:variants});
dac39588 10 });
625022fd
BA
11});
12
13module.exports = router;