feat: http verbs

This commit is contained in:
2024-01-23 17:02:11 -06:00
parent 57f5f80969
commit 5f9b972983
3 changed files with 2 additions and 2 deletions
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -8,7 +8,7 @@
"prestart": "bun install && next build", "prestart": "bun install && next build",
"start": "next start", "start": "next start",
"lint": "next lint", "lint": "next lint",
"prepare": "panda codegen && husky install", "prepare": "panda codegen && husky install && bun run prisma:generate",
"prisma:generate": "prisma generate --schema=./node_modules/entgamers-database/prisma/schema.prisma", "prisma:generate": "prisma generate --schema=./node_modules/entgamers-database/prisma/schema.prisma",
"prisma:db:push": "prisma db push --schema=./node_modules/entgamers-database/prisma/schema.prisma", "prisma:db:push": "prisma db push --schema=./node_modules/entgamers-database/prisma/schema.prisma",
"prisma:migrate:reset": "prisma migrate reset --schema=./node_modules/entgamers-database/prisma/schema.prisma", "prisma:migrate:reset": "prisma migrate reset --schema=./node_modules/entgamers-database/prisma/schema.prisma",
+1 -1
View File
@@ -16,7 +16,7 @@ export const GET = async (Request: Request, { params }: TeamApplicationRouteData
} }
} }
export const POST = async (Request: Request, { params }: TeamApplicationRouteData): Promise<Response> => { export const PUT = async (Request: Request, { params }: TeamApplicationRouteData): Promise<Response> => {
try { try {
const body: unknown = await Request.json() const body: unknown = await Request.json()
const { id } = await teamApplicationParamsSchema.validate(params) const { id } = await teamApplicationParamsSchema.validate(params)