forgot the word but pages
This commit is contained in:
+1
-1
@@ -266,7 +266,7 @@ func uploadHandler(db *gorm.DB, cfg Config, pages *Pages) http.HandlerFunc {
|
||||
switch returnType {
|
||||
// html & maybe xml? cant think of other return types
|
||||
case "html":
|
||||
render(pages, w, "upload.html", response)
|
||||
pages.render(w, "upload.html", response)
|
||||
case "redirect":
|
||||
http.Redirect(w, r, "/"+id, http.StatusSeeOther)
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user