mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 01:55:10 +02:00
Messing with sites
This commit is contained in:
parent
41e1c7e859
commit
95cdc3ca0f
4 changed files with 34 additions and 35 deletions
|
@ -18,7 +18,6 @@ export type GetSiteResponse = {
|
|||
siteId: number;
|
||||
name: string;
|
||||
subdomain: string;
|
||||
pubKey: string;
|
||||
subnet: string;
|
||||
}
|
||||
|
||||
|
@ -59,7 +58,12 @@ export async function getSite(req: Request, res: Response, next: NextFunction):
|
|||
}
|
||||
|
||||
return response(res, {
|
||||
data: site[0],
|
||||
data: {
|
||||
siteId: site[0].siteId,
|
||||
name: site[0].name,
|
||||
subdomain: site[0].subdomain,
|
||||
subnet: site[0].subnet,
|
||||
},
|
||||
success: true,
|
||||
error: false,
|
||||
message: "Site retrieved successfully",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue