Use base url in JS files

This commit is contained in:
Alex Ling
2020-05-23 13:15:54 +00:00
parent eefa8c3982
commit 4a59459773
6 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
function remove(username) {
$.post('/api/admin/user/delete/' + username, function(data) {
$.post(base_url + 'api/admin/user/delete/' + username, function(data) {
if (data.success) {
location.reload();
}