api prefix must be relative
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
|
||||
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){
|
||||
return m.request({
|
||||
|
||||
Reference in New Issue
Block a user