Remove UploadOnly value.
This commit is contained in:
parent
79b65dfb34
commit
e0b51e3c96
9
main.go
9
main.go
@ -68,13 +68,11 @@ type File struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type FilesData struct {
|
type FilesData struct {
|
||||||
Files []File
|
Files []File
|
||||||
UploadOnly bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type IndexData struct {
|
type IndexData struct {
|
||||||
Host string
|
Host string
|
||||||
UploadOnly bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error {
|
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 {
|
func Index(c echo.Context) error {
|
||||||
data := IndexData{
|
data := IndexData{
|
||||||
Host: c.Request().Host,
|
Host: c.Request().Host,
|
||||||
UploadOnly: false,
|
|
||||||
}
|
}
|
||||||
return c.Render(http.StatusOK, "index", data)
|
return c.Render(http.StatusOK, "index", data)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user