mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-07-26 09:24:02 +00:00
fix api call regression
This commit is contained in:
parent
9ae9aa80d2
commit
165f75a8b3
1 changed files with 2 additions and 2 deletions
|
|
@ -18,11 +18,11 @@
|
|||
function newUser(): void {
|
||||
let endpointURL = '/api/v1/namespace';
|
||||
if (newUserForm.reportValidity()) {
|
||||
fetch(headscaleURLStore + endpointURL, {
|
||||
fetch($headscaleURLStore + endpointURL, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
Authorization: `Bearer ${headscaleAPIKeyStore}`
|
||||
Authorization: `Bearer ${$headscaleAPIKeyStore}`
|
||||
},
|
||||
body: JSON.stringify({
|
||||
name: userName.toLowerCase()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue