Skip to content

Commit

Permalink
remove some ugly spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
radiosilence committed Nov 24, 2023
1 parent 3154164 commit 426ce85
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@ func Index(c echo.Context) error {

func getEnv(name string, fallback string) string {
value, exists := os.LookupEnv(name)

if !exists {
value = fallback
}

return value
}

Expand All @@ -72,12 +70,10 @@ func main() {

if os.Getenv("SPA_MODE") == "1" {
e.Static("/assets", "public/assets")

t := &Template{
templates: template.Must(template.ParseFiles("public/index.html")),
}
e.Renderer = t

e.GET("/*", Index)
} else {
e.Static("/", "public")
Expand Down

0 comments on commit 426ce85

Please sign in to comment.