From 9e9ca66467116e9079a2639c00e9e623aca23015 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Mon, 16 Mar 2020 01:22:27 +0800 Subject: refactor: unify error handling in routing layer --- internal/route/dev/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/route/dev/template.go') diff --git a/internal/route/dev/template.go b/internal/route/dev/template.go index b7392580..42b0ccc2 100644 --- a/internal/route/dev/template.go +++ b/internal/route/dev/template.go @@ -20,5 +20,5 @@ func TemplatePreview(c *context.Context) { c.Data["ResetPwdCodeLives"] = conf.Auth.ResetPasswordCodeLives / 60 c.Data["CurDbValue"] = "" - c.HTML(200, (c.Params("*"))) + c.Success( (c.Params("*"))) } -- cgit v1.2.3