move api to /api/*
This commit is contained in:
@@ -17,12 +17,12 @@
|
||||
function callback(responseBody, responseStatus) {
|
||||
}
|
||||
function draw(form) {
|
||||
path = "/bal"
|
||||
path = "/api/bal"
|
||||
query = "?x=y"
|
||||
Array.from(form.elements).forEach((input) => {
|
||||
query += "&" + input.name + "=" + input.value;
|
||||
if (input.name == "mode") {
|
||||
path = "/" + input.value;
|
||||
path = "/api/" + input.value;
|
||||
}
|
||||
});
|
||||
console.log(path, query);
|
||||
|
||||
Reference in New Issue
Block a user