mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-07 00:46:58 +03:00
*: allows for BASE_PATH configuration (#183)
This commit is contained in:
parent
90bb2851bf
commit
87b08a8f7c
13 changed files with 108 additions and 84 deletions
|
@ -189,7 +189,7 @@ Wireguard Clients
|
|||
$.ajax({
|
||||
cache: false,
|
||||
method: 'GET',
|
||||
url: '/api/clients',
|
||||
url: '{{.basePath}}/api/clients',
|
||||
dataType: 'json',
|
||||
contentType: "application/json",
|
||||
success: function (data) {
|
||||
|
@ -207,7 +207,7 @@ Wireguard Clients
|
|||
$.ajax({
|
||||
cache: false,
|
||||
method: 'POST',
|
||||
url: '/client/set-status',
|
||||
url: '{{.basePath}}/client/set-status',
|
||||
dataType: 'json',
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(data),
|
||||
|
@ -276,7 +276,7 @@ Wireguard Clients
|
|||
$.ajax({
|
||||
cache: false,
|
||||
method: 'POST',
|
||||
url: '/remove-client',
|
||||
url: '{{.basePath}}/remove-client',
|
||||
dataType: 'json',
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(data),
|
||||
|
@ -339,7 +339,7 @@ Wireguard Clients
|
|||
$.ajax({
|
||||
cache: false,
|
||||
method: 'GET',
|
||||
url: '/api/client/' + client_id,
|
||||
url: '{{.basePath}}/api/client/' + client_id,
|
||||
dataType: 'json',
|
||||
contentType: "application/json",
|
||||
success: function (resp) {
|
||||
|
@ -384,7 +384,7 @@ Wireguard Clients
|
|||
$.ajax({
|
||||
cache: false,
|
||||
method: 'POST',
|
||||
url: '/email-client',
|
||||
url: '{{.basePath}}/email-client',
|
||||
dataType: 'json',
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(data),
|
||||
|
@ -431,7 +431,7 @@ Wireguard Clients
|
|||
$.ajax({
|
||||
cache: false,
|
||||
method: 'POST',
|
||||
url: '/update-client',
|
||||
url: '{{.basePath}}/update-client',
|
||||
dataType: 'json',
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(data),
|
||||
|
@ -465,7 +465,7 @@ Wireguard Clients
|
|||
$.ajax({
|
||||
cache: false,
|
||||
method: 'GET',
|
||||
url: '/api/client/' + client_id,
|
||||
url: '{{.basePath}}/api/client/' + client_id,
|
||||
dataType: 'json',
|
||||
contentType: "application/json",
|
||||
success: function (resp) {
|
||||
|
@ -491,7 +491,7 @@ Wireguard Clients
|
|||
$.ajax({
|
||||
cache: false,
|
||||
method: 'GET',
|
||||
url: '/api/client/' + client_id,
|
||||
url: '{{.basePath}}/api/client/' + client_id,
|
||||
dataType: 'json',
|
||||
contentType: "application/json",
|
||||
success: function (resp) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue