Documentation
    Preparing search index...

    Brisk routes exposes the API to configure the route handler by chaining one of the pre-defined methods.

    For example: Instead of defining the redirect logic as a callback, one can chain the .redirect method.

    Brisk routes are always registered under the GET HTTP method.

    Hierarchy

    • default
      • BriskRoute
    Index

    Constructors

    Methods

    Constructors

    • Creates a new BriskRoute instance

      Parameters

      • app: Application<any>

        The AdonisJS application instance

      • routerMiddleware: ParsedGlobalMiddleware[]

        Array of global middleware registered on the router

      • options: {}

        Configuration options for the brisk route

      Returns BriskRoute

    Methods

    • Render an edge template without defining an explicit route handler

      Parameters

      • template: string
      • Optionaldata: Record<string, any>

      Returns Route