Interface: ApiNamespace
Shared middleware applied to every Api mounted under a path prefix.
Create one with the apiNamespace constructor.
Extends
BaseSpecElement<"apiNamespace">
Properties
kind
kind:
"apiNamespace"
The internal Wasp type of a SpecElement. Used by the compiler. You should not set this field directly, instead use the dedicated constructors.
Inherited from
BaseSpecElement.kind
middlewareConfigFn
middlewareConfigFn:
Reference<AnyFunction>
Reference to an Express middleware config function for this namespace.
path
path:
string
Path prefix the namespace applies to (e.g. "/webhooks").