diff options
Diffstat (limited to 'http/get.go')
| -rw-r--r-- | http/get.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/http/get.go b/http/get.go index 903b5b2..8d3c523 100644 --- a/http/get.go +++ b/http/get.go @@ -3,7 +3,6 @@ package http import ( "github.com/valyala/fasthttp" "toast.cafe/x/brpaste/v2/storage" - "toast.cafe/x/brpaste/v2/template" ) // Get generates a handler for the /:key[/:lang] endpoint @@ -26,7 +25,7 @@ func Get(store storage.CHR) handler { if lang == "raw" { ctx.SuccessString("text/plain", res) } else { - ctx.SuccessString("text/html", template.Code(lang, res)) // render template + ctx.SuccessString("text/html", CodeTemplate(lang, res)) // render template } default: ctx.NotFound() |
