初始化模版工程
This commit is contained in:
11
app/api/team/[teamId]/plugins/route.ts
Normal file
11
app/api/team/[teamId]/plugins/route.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { oapiClient, sendResponse } from '@/app/api/oapi-client'
|
||||
|
||||
export async function POST(
|
||||
req: Request,
|
||||
{ params }: { params: Promise<{ teamId: string }> },
|
||||
) {
|
||||
const body = req.body ? await req.json() : {}
|
||||
const { teamId } = await params
|
||||
const res = await oapiClient.post(`/v1/team/${teamId}/plugins`, body)
|
||||
return sendResponse(res)
|
||||
}
|
||||
Reference in New Issue
Block a user