优化路径,添加消息推送
This commit is contained in:
@@ -35,7 +35,11 @@ export async function POST(request: Request) {
|
||||
importance: typeof body.importance === "string" ? body.importance : undefined,
|
||||
});
|
||||
|
||||
return NextResponse.json({ ok: true, messageId: message.id });
|
||||
return NextResponse.json({
|
||||
ok: true,
|
||||
messageId: message.id,
|
||||
publicId: message.publicId,
|
||||
});
|
||||
} catch (error) {
|
||||
return NextResponse.json(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user