MCPcopy Create free account
hub / github.com/kataras/iris / BeforeActivation

Method BeforeActivation

mvc/controller_handle_test.go:37–45  ·  view source on GitHub ↗
(b BeforeActivation)

Source from the content-addressed store, hash-verified

35}
36
37func (c *testControllerHandle) BeforeActivation(b BeforeActivation) {
38 b.Handle("GET", "/histatic", "HiStatic")
39 b.Handle("GET", "/hiservice", "HiService")
40 b.Handle("GET", "/hiservice/{ps:string}", "HiServiceBy")
41 b.Handle("GET", "/hiparam/{ps:string}", "HiParamBy")
42 b.Handle("GET", "/hiparamempyinput/{ps:string}", "HiParamEmptyInputBy")
43 b.HandleMany("GET", "/custom/{ps:string} /custom2/{ps:string}", "CustomWithParameter")
44 b.HandleMany("GET", "/custom3/{ps:string}/{pssecond:string}", "CustomWithParameters")
45}
46
47// test `GetRoute` for custom routes.
48func (c *testControllerHandle) AfterActivation(a AfterActivation) {

Callers

nothing calls this directly

Calls 2

HandleMethod · 0.65
HandleManyMethod · 0.65

Tested by

no test coverage detected