Skip to content

Controller

Josh Wright edited this page Jan 14, 2021 · 3 revisions

Controller

Represents a type that adds handlers to a router. Used for organizing your app's handlers into smaller components.

public protocol Controller

Requirements

route(_:​)

Add this controller's handlers to a router.

func route(_ app: Application)

Parameters

  • router: The Router on which to add handlers.
Alchemy
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Fusion
Types
Protocols
Papyrus
Types
Protocols
Clone this wiki locally