fix text-to-image route.

This commit is contained in:
fiatjaf
2023-05-30 10:14:53 -03:00
parent 9a6ddd2dab
commit e503ea773b

View File

@@ -9,7 +9,7 @@ import (
func generate(w http.ResponseWriter, r *http.Request) {
fmt.Println(r.URL.Path, ":~", r.Header.Get("user-agent"))
code := r.URL.Path[1+len("image/"):]
code := r.URL.Path[1+len("njump/image/"):]
if code == "" {
fmt.Fprintf(w, "call /njump/image/<nip19 code>")
return