[#1552] unescaped path parameter values

This commit is contained in:
Gani Georgiev
2023-01-09 22:32:34 +02:00
parent 3dc1bf6fa7
commit f7d4722052
32 changed files with 62 additions and 34 deletions
+7
View File
@@ -26,6 +26,13 @@ func InitApi(app core.App) (*echo.Echo, error) {
e := echo.New()
e.Debug = app.IsDebug()
// configure a custom router
e.ResetRouterCreator(func(ec *echo.Echo) echo.Router {
return echo.NewRouter(echo.RouterConfig{
UnescapePathParamValues: true,
})
})
// default middlewares
e.Pre(middleware.RemoveTrailingSlashWithConfig(middleware.RemoveTrailingSlashConfig{
Skipper: func(c echo.Context) bool {