From ea2b14e77eda56a2f1f4595309e91d9f252b15e8 Mon Sep 17 00:00:00 2001 From: Ashutosh Jha Date: Sat, 15 Jul 2023 12:13:07 +0530 Subject: [PATCH] feat: add route --- api/main.go | 6 ++++++ data/dump.rdb | Bin 421 -> 398 bytes 2 files changed, 6 insertions(+) diff --git a/api/main.go b/api/main.go index 5cefd9c..f71d900 100644 --- a/api/main.go +++ b/api/main.go @@ -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) diff --git a/data/dump.rdb b/data/dump.rdb index 380ec12480d468aadf5bd774ed48cc890fcade32..ce62c356393537cc11181abfa55471801c3ae124 100644 GIT binary patch delta 64 zcmV-G0KfmG1C9fbF%a}VvSj)Qb#rB8Ep26O!kCdk6_MtTk%cjlRxpvaFB$#;`vCv| W2V-w_ZggdGzy$yMt7S*8Z=7as1RLD| delta 89 zcmV-f0H*(r1Em9yF%SnhvSj)Qb#rB8Ep26O!nlz^6_XYLFp=gklSTnAkyVf|{sH>} v0RRVMZ*^{TWpcm-{Le}@Scw4u000UxH!?0VFfK4IF~A4^gSN^I1Jcv|oI4