add about page
All checks were successful
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Successful in 3m9s
mozhi pipeline / Build and publish artifacts (push) Successful in 4m11s

This commit is contained in:
2023-09-10 20:43:48 +05:30
parent 527877a321
commit 6c509efcd2
3 changed files with 22 additions and 1 deletions

View File

@@ -84,6 +84,7 @@ func Serve(port string) {
})
app.Get("/", pages.HandleIndex)
app.Get("/about", pages.HandleAbout)
app.Get("/switchlanguages", func(c *fiber.Ctx) error {
engine := c.Query("engine")
from := c.Query("from")
@@ -95,7 +96,6 @@ func Serve(port string) {
MaxAge: 2592000,
Root: http.FS(public.GetFiles()),
}))
// app.Get("/about", pages.HandleAbout)
api := app.Group("/api")
api.Get("/translate", pages.HandleTranslate)