mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 20:17:05 +00:00
implement a way to add controller functions as handlers with the existing rules respected but it's a bit dirty I will change the implementation and move the mvc2 to mvc and make the api builder's PartyFunc to be a critical part of the controller and the mvc2.Mvc bind values should be also respected to the controller and more
Former-commit-id: e452a916da80d886535b8ae9625d0ba8e2b58d6e
This commit is contained in:
11
mvc/go19.go
11
mvc/go19.go
@@ -13,15 +13,14 @@ type (
|
||||
// in order to be marked as safe content, to be rendered as html and not escaped.
|
||||
HTML = template.HTML
|
||||
|
||||
// ActivatePayload contains the necessary information and the ability
|
||||
// to alt a controller's registration options, i.e the binder.
|
||||
// TController contains the necessary controller's pre-serve information.
|
||||
//
|
||||
// With `ActivatePayload` the `Controller` can register custom routes
|
||||
// With `TController` the `Controller` can register custom routes
|
||||
// or modify the provided values that will be binded to the
|
||||
// controller later on.
|
||||
//
|
||||
// Look the `mvc/activator#ActivatePayload` for its implementation.
|
||||
// Look the `mvc/activator#TController` for its implementation.
|
||||
//
|
||||
// A shortcut for the `mvc/activator#ActivatePayload`, useful when `OnActivate` is being used.
|
||||
ActivatePayload = activator.ActivatePayload
|
||||
// A shortcut for the `mvc/activator#TController`, useful when `OnActivate` is being used.
|
||||
TController = activator.TController
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user