Skip to content

Commit

Permalink
fixed input outline and error response codes
Browse files Browse the repository at this point in the history
  • Loading branch information
briandoesdev committed Jun 23, 2024
1 parent 5676419 commit 7874e29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions public/views/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
border-bottom-left-radius: 5px;
}

input:focus {
outline: none;
}

button {
padding: 10px 20px;
font-size: 1em;
Expand Down
8 changes: 4 additions & 4 deletions routes/lookup/lookup_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ func getNumberSummary(c echo.Context) error {
case "api":
return c.JSON(500, &routes.ErrorPayload{Message: err.Error()})
case "sms":
return c.String(200, err.Error())
return c.String(500, err.Error())
default:
return c.Render(200, "home.html", map[string]interface{}{"sum": err.Error()})
return c.Render(500, "home.html", map[string]interface{}{"sum": err.Error()})
}
}

Expand All @@ -56,9 +56,9 @@ func getNumberSummary(c echo.Context) error {
case "api":
return c.JSON(500, &routes.ErrorPayload{Message: err.Error()})
case "sms":
return c.String(200, sum)
return c.String(500, sum)
default:
return c.Render(200, "home.html", map[string]interface{}{"sum": err.Error()})
return c.Render(500, "home.html", map[string]interface{}{"sum": err.Error()})
}
}

Expand Down

0 comments on commit 7874e29

Please sign in to comment.