mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
18 lines
289 B
Go
18 lines
289 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/go-chi/chi/v5"
|
|
)
|
|
|
|
func (m *MainHandler) getHoldHandler(w http.ResponseWriter, r *http.Request) {
|
|
hold, err := m.manager.GetHold(r.Context(), chi.URLParam(r, "holdID"))
|
|
if err != nil {
|
|
internalError(w, r, err)
|
|
return
|
|
}
|
|
|
|
ok(w, hold)
|
|
}
|