mirror of
https://codeberg.org/aryak/mozhi
synced 2025-06-04 00:41:07 +05:30
add about page
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user