fix: POST message api

This commit is contained in:
Tony Yang
2025-04-16 18:30:18 +08:00
parent fd565f3133
commit 2916a23bc2
2 changed files with 8 additions and 1 deletions
+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 {