1
0
forked from crony/UpFast

Remove UploadOnly value.

This commit is contained in:
CronyAkatsuki 2023-12-21 11:19:22 +01:00
parent 79b65dfb34
commit e0b51e3c96

View File

@ -69,12 +69,10 @@ type File struct {
type FilesData struct {
Files []File
UploadOnly bool
}
type IndexData struct {
Host string
UploadOnly bool
}
func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error {
@ -84,7 +82,6 @@ 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,
}
return c.Render(http.StatusOK, "index", data)
}