Remove UploadOnly value.

This commit is contained in:
CronyAkatsuki 2023-12-21 11:19:22 +01:00
parent 75ae2871f6
commit f6cb0a2c62

View File

@ -68,13 +68,11 @@ type File struct {
}
type FilesData struct {
Files []File
UploadOnly bool
Files []File
}
type IndexData struct {
Host string
UploadOnly bool
Host string
}
func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error {
@ -83,8 +81,7 @@ func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Con
func Index(c echo.Context) error {
data := IndexData{
Host: c.Request().Host,
UploadOnly: false,
Host: c.Request().Host,
}
return c.Render(http.StatusOK, "index", data)
}