MCPcopy Create free account
hub / github.com/did-method-plc/did-method-plc / WebResolve

Method WebResolve

website/server.go:246–253  ·  view source on GitHub ↗
(c echo.Context)

Source from the content-addressed store, hash-verified

244}
245
246func (srv *Server) WebResolve(c echo.Context) error {
247 data := pongo2.Context{}
248 did := c.QueryParam("did")
249 if did != "" {
250 return c.Redirect(http.StatusMovedPermanently, "/did/"+did)
251 }
252 return c.Render(http.StatusOK, "templates/resolve.html", data)
253}
254
255func (srv *Server) WebDid(c echo.Context) error {
256 data := pongo2.Context{}

Callers

nothing calls this directly

Calls 1

RenderMethod · 0.80

Tested by

no test coverage detected