Add error page when accept header is text/html

This commit is contained in:
joncrangle
2023-12-13 00:04:19 -05:00
parent c2d6a2c461
commit ad415bee8c
5 changed files with 278 additions and 4 deletions

View File

@@ -139,6 +139,7 @@ func main() {
app.Use(handlers.Auth())
app.Use(handlers.Favicon())
app.Use(handlers.RenderErrorPage())
if os.Getenv("NOLOGS") != "true" {
app.Use(func(c *fiber.Ctx) error {