(c echo.Context)
| 244 | } |
| 245 | |
| 246 | func (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 | |
| 255 | func (srv *Server) WebDid(c echo.Context) error { |
| 256 | data := pongo2.Context{} |