Closed davemooreuws closed 4 weeks ago
In the dashboard. If two or more APIs have a route with identical paths and methods. Then they all share the same history.
Steps to reproduce the behavior:
import { api } from "@nitric/sdk";
const first = api("first");
const second = api("second");
first.get("/hello/:name", async (ctx) => { const { name } = ctx.req.params;
ctx.res.body = Hello ${name} from first;
Hello ${name} from first
return ctx; });
second.get("/hello/:name", async (ctx) => { const { name } = ctx.req.params;
ctx.res.body = Hello ${name} from second;
Hello ${name} from second
3. Run nitric start and make a call on both routes 4. You will notice they can both see each others history ### Expected The history list should be unique per route
:tada: This issue has been resolved in version 1.54.16 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Bug Report
Issue
In the dashboard. If two or more APIs have a route with identical paths and methods. Then they all share the same history.
Steps
Steps to reproduce the behavior:
const first = api("first");
const second = api("second");
first.get("/hello/:name", async (ctx) => { const { name } = ctx.req.params;
ctx.res.body =
Hello ${name} from first
;return ctx; });
second.get("/hello/:name", async (ctx) => { const { name } = ctx.req.params;
ctx.res.body =
Hello ${name} from second
;return ctx; });