Change encode route to /e/

This commit is contained in:
Andreas Mieke 2018-06-19 19:45:39 +02:00
parent 5a22e9ee01
commit 950b10869a
No known key found for this signature in database
GPG key ID: 0C26F7695C85F85A

View file

@ -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)