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

Method Build

_examples/configuration/multi-environments/api/server.go:34–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func (s *Server) Build() error {
35 if err := s.Application.Build(); err != nil {
36 return err
37 }
38
39 // Register your 3rd-party drivers.
40 // if err := s.registerDatabase(); err != nil {
41 // return err
42 // }s
43
44 return s.configureRouter()
45}
46
47func (s *Server) configureRouter() error {
48 s.SetContextErrorHandler(errors.DefaultContextErrorHandler)

Callers 1

ListenMethod · 0.95

Calls 2

configureRouterMethod · 0.95
BuildMethod · 0.65

Tested by

no test coverage detected