MCPcopy Create free account
hub / github.com/gogs/gogs / InstallInit

Function InstallInit

internal/route/install.go:115–125  ·  view source on GitHub ↗
(c *context.Context)

Source from the content-addressed store, hash-verified

113}
114
115func InstallInit(c *context.Context) {
116 if conf.Security.InstallLock {
117 c.NotFound()
118 return
119 }
120
121 c.Title("install.install")
122 c.PageIs("Install")
123
124 c.Data["DbOptions"] = []string{"MySQL", "PostgreSQL", "SQLite3"}
125}
126
127func Install(c *context.Context) {
128 f := form.Install{}

Callers

nothing calls this directly

Calls 3

TitleMethod · 0.80
PageIsMethod · 0.80
NotFoundMethod · 0.65

Tested by

no test coverage detected