Fork of github.com/did-method-plc/did-method-plc
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

webplc: health endpoint

+11
+11
go-didplc/cmd/webplc/server.go
··· 139 139 return c.Redirect(http.StatusMovedPermanently, "/.well-known/security.txt") 140 140 }) 141 141 142 + // meta stuff 143 + e.GET("/_health", server.WebHealth) 144 + e.GET("/healthz", server.WebHealth) 145 + 142 146 // actual pages/views 143 147 e.GET("/", server.WebHome) 144 148 e.GET("/resolve", server.WebResolve) ··· 221 225 data["html_title"] = "did:plc Specification v0.1" 222 226 data["markdown_html"] = string(blackfriday.Run(specZeroOneMarkdown)) 223 227 return c.Render(http.StatusOK, "templates/markdown.html", data) 228 + } 229 + 230 + func (srv *Server) WebHealth(c echo.Context) error { 231 + resp := map[string]interface{}{ 232 + "status": "ok", 233 + } 234 + return c.JSON(http.StatusOK, resp) 224 235 } 225 236 226 237 func (srv *Server) WebOpenapiYaml(c echo.Context) error {