mirror of
https://github.com/aljazceru/njump.git
synced 2026-02-04 13:44:26 +01:00
fix text-to-image route.
This commit is contained in:
2
image.go
2
image.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user