fix: POST message api

This commit is contained in:
Tony Yang committed 2025-04-16 18:30:18 +08:00
1 parent fd565f3133
commit 2916a23bc2
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -21,6 +21,13 @@ export const onRequestPost = [
async (context) => {
try {
const { request, env } = context;
// Verify the JWT token
const authResult = await verifyJWT(context);
if (authResult) {
return authResult; // Return the error response from the middleware
}
let payload;
try {