Execute middleware for only Content type APIs

Hi @MattieBelt, yes console.log(ctx.state.admin); is always returning undefined.
Whereas I want to customize the API response on success it should return { status: "success", data: strapi_api_response_here } while for error response { status: "error", error: strapi_api_error_response_here }