Serve basic files page.

This commit is contained in:
CronyAkatsuki 2023-12-19 21:17:59 +01:00
parent d68add7803
commit c2e09996a2
3 changed files with 89 additions and 0 deletions

View file

@ -35,6 +35,8 @@ func main() {
e.GET("/", Index)
e.GET("/files/", Files)
e.Logger.Fatal(e.Start(":1323"))
}
@ -52,3 +54,7 @@ func Index(c echo.Context) error {
"upload_only": true,
})
}
func Files(c echo.Context) error {
return c.Render(http.StatusOK, "files", "test")
}