Add order total calculation and update template display

This commit is contained in:
bronku 2025-03-28 23:26:46 +01:00
parent 5af6e871c2
commit fe703a9b1c
5 changed files with 22 additions and 4 deletions

9
internal/server/http.go Normal file
View file

@ -0,0 +1,9 @@
package server
import "net/http"
func (s *Server) redirect(path string, code int) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, path, code)
}
}