Skip to content

HAMUR_E1173: A middleware is declared in a handler file

A middleware is declared in a handler file. Error HAMUR_E1173 belongs to hamur, scan, build and dev (1001 – 1999).

Message

text
HAMUR_E1173 export "<owner>": middleware "<declared>" is declared in a handler file; declare it in a file that holds only imports and defineMiddleware

Cause

A handler file declares a middleware with defineMiddleware.

Fix

Declare the middleware in a file that holds only imports and defineMiddleware.