Messing with sites

This commit is contained in:
Owen Schwartz 2024-10-13 23:16:52 -04:00
parent 41e1c7e859
commit 95cdc3ca0f
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
4 changed files with 34 additions and 35 deletions

View file

@ -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",