Skip to content

Commit

Permalink
add a blank default page
Browse files Browse the repository at this point in the history
  • Loading branch information
broneks committed Nov 30, 2024
1 parent 899fbb7 commit dd8ade9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/page/routes.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package page

import (
"net/http"
"piccolo/api/middleware"
"piccolo/api/repo/sharedalbumrepo"
"piccolo/api/repo/userrepo"
Expand All @@ -11,8 +12,8 @@ import (
)

func Routes(e *echo.Echo, server *types.Server) {
e.GET("/hello", func(c echo.Context) error {
return c.String(200, "Hello, World!")
e.GET("/", func(c echo.Context) error {
return c.NoContent(http.StatusOK)
})

userRepo := userrepo.New(server.DB)
Expand Down

0 comments on commit dd8ade9

Please sign in to comment.