simplify Noform Option

This commit is contained in:
Gianni Carafa
2023-11-02 20:21:24 +01:00
parent b786796595
commit e3389d2df3
2 changed files with 13 additions and 13 deletions

View File

@@ -48,11 +48,7 @@ func main() {
})
}
if os.Getenv("DISABLE_FORM") != "true" {
app.Get("/", handlers.Form)
} else {
app.Get("/", handlers.NoForm)
}
app.Get("/", handlers.Form)
app.Get("raw/*", handlers.Raw)
app.Get("api/*", handlers.Api)