mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-16 22:41:45 +00:00
refactor: clean up form binding & validation (#38873)
Clarify the "validation" and "error display" logic. All the copied&pasted `Validate` functions are removed.
This commit is contained in:
@@ -28,7 +28,7 @@ func Routes() *web.Router {
|
||||
r.AfterRouting(common.MustInitSessioner(), installContexter())
|
||||
|
||||
r.Get("/", Install) // it must be on the root, because the "install.js" use the window.location to replace the "localhost" AppURL
|
||||
r.Post("/", web.Bind(forms.InstallForm{}), SubmitInstall)
|
||||
r.Post("/", web.Bind[*forms.InstallForm](), SubmitInstall)
|
||||
r.Get("/post-install", InstallDone)
|
||||
|
||||
r.Get("/-/web-theme/list", misc.WebThemeList)
|
||||
|
||||
Reference in New Issue
Block a user