From 950b10869a8b264048b2369deb50be487139f20a Mon Sep 17 00:00:00 2001 From: Andreas Mieke Date: Tue, 19 Jun 2018 19:45:39 +0200 Subject: [PATCH] Change encode route to /e/ --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 0bd3a70..0bc3782 100644 --- a/main.go +++ b/main.go @@ -32,7 +32,7 @@ func main() { database.InitDb(viper.GetString("DBType"), viper.GetString("DBConnection")) router := gin.Default() - router.POST("/e", routes.Encode) + router.POST("/e/", routes.Encode) router.GET("/r/:short", routes.Redirect) router.GET("/d/:short", routes.Decode) router.GET("/i/:short", routes.Info)