Skip to main content
Version: Next

Interface: ApiNamespace

Shared middleware applied to every Api mounted under a path prefix.

Create one with the apiNamespace constructor.

Extends

  • BasePart<"apiNamespace">

Properties

kind

kind: "apiNamespace"

The internal Wasp type of this part. Used by the compiler. You should not set this field directly, instead use the dedicated constructors for each part type.

Inherited from

BasePart.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").