Add basic CRUD

This commit is contained in:
Owen Schwartz
2024-10-01 21:53:49 -04:00
parent 1273747099
commit f1e77dfe42
21 changed files with 934 additions and 224 deletions

View File

@@ -2,11 +2,7 @@ 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;
}
// define zod type here
export async function createSite(req: Request, res: Response, next: NextFunction) {
return res.status(HttpCode.OK).send(