Skip to content

The route map is wrong, which is a bit odd #2465

@bambuo

Description

@bambuo

The mapping is as follows:

//limit 0:10
job.GET("/details/:id",globalManpowerDemandController.Details)
job.GET("/:limit", globalManpowerDemandController.LimitManpowerDemand)

The error is as follows:

panic: wildcard segment ':limit' conflicts with existing children in path '/api/job/:limit'

At first glance these should be two different paths, but they are identified as conflicting. What should I do?

/details/:id
/:limit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions