Add order total calculation and update template display
This commit is contained in:
parent
5af6e871c2
commit
fe703a9b1c
5 changed files with 22 additions and 4 deletions
|
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/Bronku/iroon/internal/models"
|
||||
)
|
||||
|
||||
func (h *Server) index(r *http.Request) (any, int, error) {
|
||||
func (h *Server) orders(r *http.Request) (any, int, error) {
|
||||
data, err := h.s.GetOrders()
|
||||
return data, http.StatusOK, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue