Skip to content

Parameter value is lost #5

@fulldump

Description

@fulldump

CRITICAL BUG
For example, the following code demonstrate it:

golax.NewApi.
    Root.
    Node("users").
    Node("{aa}").
    Interceptor(&golax.Interceptor{
        Before: func(c *golax.Context) {
            fmt.Println("Parameter!!!", c.Parameter)
        },
    }).
    Node("profile").Method("GET", func(c *golax.Context) {
        fmt.Fprintln(c.Response, "hi user")
    }).
    Serve()

Fails misserably when:

curl http://localhost:8000/users/22/profile

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions