api prefix must be relative
This commit is contained in:
@@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
const api = {};
|
const api = {};
|
||||||
|
|
||||||
let prefix = "/api";
|
// not `/api` (relative to domain root) nor `//api` (results in https:///api/...)
|
||||||
|
let prefix = "api";
|
||||||
|
|
||||||
api.post = function(url, body){
|
api.post = function(url, body){
|
||||||
return m.request({
|
return m.request({
|
||||||
|
|||||||
Reference in New Issue
Block a user