post order
This commit is contained in:
parent
4666618151
commit
c540ccc28e
5 changed files with 38 additions and 37 deletions
|
|
@ -159,16 +159,6 @@ func (h *Server) blocked(r *http.Request) (templ.Component, int, error) {
|
|||
return templates.BlockedPage(dates), http.StatusOK, nil
|
||||
}
|
||||
|
||||
func internalError(err error) *httpError {
|
||||
return &httpError{http.StatusInternalServerError, err}
|
||||
}
|
||||
func badRequest(err error) *httpError {
|
||||
return &httpError{http.StatusBadRequest, err}
|
||||
}
|
||||
func notFound(err error) *httpError {
|
||||
return &httpError{http.StatusNotFound, err}
|
||||
}
|
||||
|
||||
func (h *Server) newOrder(r *http.Request) (dto.OrderPage, *httpError) {
|
||||
var dto dto.OrderPage
|
||||
var err error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue