2 import App
from "./App.vue";
3 import router
from "./router";
4 import { ajax
} from "./utils/ajax";
6 Vue
.config
.productionTip
= false;
15 ajax("http://localhost:3000/variants", "GET", variantArray
=> {
16 console
.log("Got variants:");
17 console
.log(variantArray
);
22 // TODO: get rules, dynamic import
23 // Load a rules page (AJAX)
24 // router.get("/rules/:vname([a-zA-Z0-9]+)", access.ajax, (req,res) => {
25 // const lang = selectLanguage(req, res);
26 // res.render("rules/" + req.params["vname"] + "/" + lang);