fix api call regression

This commit is contained in:
Christopher Bisset 2022-07-10 19:29:08 +10:00
parent 9ae9aa80d2
commit 165f75a8b3

View file

@ -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()