(request: Request)
| 27 | } |
| 28 | |
| 29 | export async function POST(request: Request) { |
| 30 | try { |
| 31 | const session = await requireSession(request) |
| 32 | const body = (await request.json()) as CreateAgentInput |
| 33 | return Response.json(await createCloudAgent(session.apiKey, body)) |
| 34 | } catch (error) { |
| 35 | return jsonError(error, "Failed to create a cloud agent.") |
| 36 | } |
| 37 | } |
nothing calls this directly
no test coverage detected