Skip to content

Commit

Permalink
chore: prefix /formatter
Browse files Browse the repository at this point in the history
Signed-off-by: Hemanth Krishna <[email protected]>
  • Loading branch information
DarthBenro008 committed Apr 5, 2023
1 parent d1f591e commit 0676333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func base64Encoder(input []byte) string {
func main() {
app := fiber.New()
app.Use(cors.New())
app.Get("/", func(c *fiber.Ctx) error {
app.Get("/formatter/", func(c *fiber.Ctx) error {
return c.JSON(fiber.Map{
"status": "true",
"details": "sorobix-formatter",
Expand All @@ -48,7 +48,7 @@ func main() {
"com/sorobix/sorobix-formatter",
})
})
app.Post("/", func(c *fiber.Ctx) error {
app.Post("/formatter/", func(c *fiber.Ctx) error {
var data request
err := c.BodyParser(&data)
if err != nil {
Expand Down

0 comments on commit 0676333

Please sign in to comment.