Change encode route to /e/
This commit is contained in:
parent
5a22e9ee01
commit
950b10869a
2
main.go
2
main.go
|
@ -32,7 +32,7 @@ func main() {
|
||||||
database.InitDb(viper.GetString("DBType"), viper.GetString("DBConnection"))
|
database.InitDb(viper.GetString("DBType"), viper.GetString("DBConnection"))
|
||||||
|
|
||||||
router := gin.Default()
|
router := gin.Default()
|
||||||
router.POST("/e", routes.Encode)
|
router.POST("/e/", routes.Encode)
|
||||||
router.GET("/r/:short", routes.Redirect)
|
router.GET("/r/:short", routes.Redirect)
|
||||||
router.GET("/d/:short", routes.Decode)
|
router.GET("/d/:short", routes.Decode)
|
||||||
router.GET("/i/:short", routes.Info)
|
router.GET("/i/:short", routes.Info)
|
||||||
|
|
Loading…
Reference in a new issue