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

Function main

_examples/routing/main.go:147–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147func main() {
148 app := newApp()
149 app.Logger().SetLevel("debug")
150
151 /*
152 // GET
153 http://localhost:8080/healthcheck
154 http://localhost:8080/games/42/clans
155 http://localhost:8080/games/42/clans/clan/93
156 http://localhost:8080/games/42/clans/search
157 http://mysubdomain.localhost:8080/
158
159 // PUT
160 http://localhost:8080/postvalue
161 http://localhost:8080/games/42/players/93
162 http://localhost:8080/games/42/clans/clan/93
163
164 // POST
165 http://localhost:8080/
166 http://localhost:8080/postvalue
167 http://localhost:8080/games/42/clans
168 http://localhost:8080/games/42/players
169 http://localhost:8080/games/42/clans/93/leave
170 http://localhost:8080/games/42/clans/93/memberships/application
171 http://localhost:8080/games/42/clans/93/memberships/application/anystring
172 http://localhost:8080/games/42/clans/93/memberships/invitation
173 http://localhost:8080/games/42/clans/93/memberships/invitation/anystring
174 http://localhost:8080/games/42/clans/93/memberships/delete
175 http://localhost:8080/games/42/clans/93/memberships/promote
176 http://localhost:8080/games/42/clans/93/memberships/demote
177
178 // FIRE NOT FOUND
179 http://localhost:8080/coudlntfound
180 */
181 app.Listen(":8080")
182}

Callers

nothing calls this directly

Calls 3

newAppFunction · 0.70
LoggerMethod · 0.65
ListenMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…