mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 18:14:53 +02:00
Trying to add site provider
This commit is contained in:
parent
2d754c4279
commit
892dd39e6d
14 changed files with 138 additions and 52 deletions
|
@ -14,6 +14,14 @@ const getSiteSchema = z.object({
|
|||
siteId: z.string().transform(Number).pipe(z.number().int().positive())
|
||||
});
|
||||
|
||||
export type GetSiteResponse = {
|
||||
siteId: number;
|
||||
name: string;
|
||||
subdomain: string;
|
||||
pubKey: string;
|
||||
subnet: string;
|
||||
}
|
||||
|
||||
export async function getSite(req: Request, res: Response, next: NextFunction): Promise<any> {
|
||||
try {
|
||||
// Validate request parameters
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue