Skip to content

With ghttp is there a way to setup a route handler to respond with sub handlers in order pr call #742

@Jay-Madden

Description

@Jay-Madden

For example I have routes:

/foo/bar

and 

/baz/bax

I would like /foo/bar to respond to the first request to that url with {"data": 1} and the second request with {"data": 2}

I would like /baz/bax to respond to the first request to that url with {"data2": 3} and the second request with {"data2": 4}

I could not find a way to achieve this in the docs and am currently doing it via .AppendHandlers and putting all routes in there with verifies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions