57d4a30bb383dd7dccd2af8ec38cf49350197f8a
1 // Get variants list (always needed)
3 let router
= require("express").Router();
4 const VariantModel
= require("../models/Variant");
5 const access
= require("../utils/access");
7 router
.get('/variants', function(req
, res
) {
8 VariantModel
.getAll((err
,variants
) => {
9 res
.json(err
|| {variantArray:variants
});
13 module
.exports
= router
;