go mod tidy + gofmt

This commit is contained in:
2023-07-22 19:54:15 +05:30
parent e559ec9214
commit 9c2eaa6b99
14 changed files with 500 additions and 512 deletions

View File

@@ -47,8 +47,8 @@ func Serve(port string) {
}
link := strings.TrimPrefix(err.Error(), "Cannot GET ")
err = ctx.Status(code).Render("error", fiber.Map{
"error": err,
"link": link,
"error": err,
"link": link,
})
if err != nil {
return ctx.Status(fiber.StatusInternalServerError).SendString("Internal Server Error")