diff --git a/nginx/public_html/api.js b/nginx/public_html/api.js index 74a55d5..7e68bac 100644 --- a/nginx/public_html/api.js +++ b/nginx/public_html/api.js @@ -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({