mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-10 20:02:26 +00:00
18 lines
503 B
TypeScript
18 lines
503 B
TypeScript
import { Request, Response, NextFunction } from 'express';
|
|
import response from "@server/utils/response";
|
|
import HttpCode from '@server/types/HttpCode';
|
|
|
|
// define zod type here
|
|
|
|
export async function createSite(req: Request, res: Response, next: NextFunction): Promise<any> {
|
|
return res.status(HttpCode.OK).send(
|
|
response<null>({
|
|
data: null,
|
|
success: true,
|
|
error: false,
|
|
message: "Logged in successfully",
|
|
status: HttpCode.OK,
|
|
}),
|
|
);
|
|
}
|