mirror of
https://github.com/BaaRai/ARTEX.git
synced 2026-12-03 13:11:05 +00:00
16 lines
377 B
Go
16 lines
377 B
Go
package server
|
|
|
|
import "net/http"
|
|
|
|
func (s *Server) interceptTaskPendingSummary(w http.ResponseWriter, r *http.Request) {
|
|
pg := s.pg(w)
|
|
if pg == nil {
|
|
return
|
|
}
|
|
summary, err := pg.TaskInterceptPendingSummary(r.Context(), r.PathValue("taskID"))
|
|
if err != nil {
|
|
writeErr(w, http.StatusInternalServerError, err.Error())
|
|
return
|
|
}
|
|
writeJSON(w, http.StatusOK, summary)
|
|
}
|