Skip to content

Commit

Permalink
feat: make /last also use new template
Browse files Browse the repository at this point in the history
  • Loading branch information
jabuxas committed Oct 17, 2024
1 parent c32a459 commit eda0966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (app *Application) lastUploadedHandler(w http.ResponseWriter, r *http.Reque
http.Error(w, "No new files uploaded yet", http.StatusNotFound)
return
}
http.ServeFile(w, r, app.lastUploadedFile)
DisplayFile(app, "/"+app.lastUploadedFile, w)
}

func (app *Application) uploadHandler(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit eda0966

Please sign in to comment.