mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-01 00:24:38 +02:00
22 lines
557 B
TypeScript
22 lines
557 B
TypeScript
|
import { Request, Response, NextFunction } from 'express';
|
||
|
import response from "@server/utils/response";
|
||
|
import HttpCode from '@server/types/HttpCode';
|
||
|
|
||
|
interface CreateSiteRequest {
|
||
|
publicKey: string;
|
||
|
name: string;
|
||
|
orgId: number;
|
||
|
}
|
||
|
|
||
|
export async function createSite(req: Request, res: Response, next: NextFunction) {
|
||
|
return res.status(HttpCode.OK).send(
|
||
|
response<null>({
|
||
|
data: null,
|
||
|
success: true,
|
||
|
error: false,
|
||
|
message: "Logged in successfully",
|
||
|
status: HttpCode.OK,
|
||
|
}),
|
||
|
);
|
||
|
}
|