We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node.js version: 16.8
@koa/router version: 10.1.1
@koa/router
koa version: 2.13.1
koa
export const router = new Router() .get("/ping", ping) .get("/public", getPublic) .get("/account/balance", getUserBalance) .get("/peers", getPeers) .get("/peers/random/:count", getRandomPeers) .post("/tx", postTxRateLimiter, initialChecks, fileUpload, verifyUpload, sendSignedResponse) .head("/:txId", getTx) .get("/:txId", getTx) // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore .post("/newTx", rateLimiter, jsonBodyParser, newTx);
When I go to GET /ping - I should see a specific output
GET /ping
GET /ping is going to GET /:txId
GET /:txId
The text was updated successfully, but these errors were encountered:
Do you have a next() on your /ping middleware? If you don't want any other routes to be executed, you should remove it.
next()
/ping
Sorry, something went wrong.
@joshbenaron would you consider this resolved? :)
No branches or pull requests
node.js version: 16.8
@koa/router
version: 10.1.1koa
version: 2.13.1Code sample:
Expected Behavior:
When I go to
GET /ping
- I should see a specific outputActual Behavior:
GET /ping
is going toGET /:txId
The text was updated successfully, but these errors were encountered: