Skip to content

Commit

Permalink
feat: add route
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh887 committed Jul 15, 2023
1 parent 913ff40 commit ea2b14e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ import (
)

func setupRoutes(app *fiber.App) {
app.Get("/", func(c *fiber.Ctx) error {
return c.JSON(fiber.Map{
"message": "Snip up and running!",
})
})

app.Get("/health", routes.HealthCheck)

app.Get("/:url", routes.ResolveURL)
Expand Down
Binary file modified data/dump.rdb
Binary file not shown.

0 comments on commit ea2b14e

Please sign in to comment.