-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Description
我的系统中出现了无法避免的路由前缀一致的情况,请问应该如何处理?
代码片段如下:
pakGroup := router.Group("/pak")
{
terrainGroup := pakGroup.Group("/terrain")
{
terrainGroup.GET("/:layername/layer.json", layerjson)
terrainGroup.GET("/:layername/:z/:x/:y&f", terrain)
}
}
错误提示如下:
panic: wildcard route ':z' conflicts with existing children in path '/pak/terrain/:layername/:z/:x/:y&f'
Metadata
Metadata
Assignees
Labels
No labels