mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-13 16:36:41 +00:00
Test & fix the get defaults for sites
This commit is contained in:
@@ -76,7 +76,7 @@ export function CreateSiteForm() {
|
||||
setIsLoading(false);
|
||||
|
||||
api
|
||||
.get(`/site/pickSiteDefaults`)
|
||||
.get(`/org/${orgId}/pickSiteDefaults`)
|
||||
.catch((e) => {
|
||||
toast({
|
||||
title: "Error creating site..."
|
||||
@@ -93,7 +93,8 @@ export function CreateSiteForm() {
|
||||
const res = await api
|
||||
.put(`/org/${orgId}/site/`, {
|
||||
name: data.name,
|
||||
// subdomain: data.subdomain,
|
||||
subnet: siteDefaults?.subnet,
|
||||
exitNodeId: siteDefaults?.exitNodeId,
|
||||
pubKey: keypair?.publicKey,
|
||||
})
|
||||
.catch((e) => {
|
||||
|
||||
Reference in New Issue
Block a user