feat: http verbs
This commit is contained in:
+1
-1
@@ -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",
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user