fix: POST message api
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user