mirror of
https://github.com/gomods/athens
synced 2026-02-03 11:00:32 +00:00
* Remove Buffalo * gofmt * pr fixes * fix subrouter * bring back secure middleware + pr fixes * better place for subrouter * vendor
16 lines
335 B
Go
16 lines
335 B
Go
package actions
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/gomods/athens/pkg/storage"
|
|
)
|
|
|
|
func getReadinessHandler(s storage.Backend) http.HandlerFunc {
|
|
return func(w http.ResponseWriter, r *http.Request) {
|
|
if _, err := s.List(r.Context(), "github.com/gomods/athens"); err != nil {
|
|
w.WriteHeader(http.StatusInternalServerError)
|
|
}
|
|
}
|
|
}
|