mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2026-01-28 09:31:13 +00:00
port template engine
This commit is contained in:
@@ -14,7 +14,7 @@ func RenderError(c *fiber.Ctx, code int) error {
|
||||
if code != 0 {
|
||||
codeStr = strconv.Itoa(code)
|
||||
}
|
||||
img, _ := static.GetFiles().ReadFile("img/error-" + codeStr + ".png")
|
||||
img, _ := ReadFile("img/error-"+codeStr+".png", static.GetFiles())
|
||||
c.Set("Content-Type", "image/png")
|
||||
return c.Status(code).Send(img)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user