nitrictech / cli

Nitric CLI. Manage and run Nitric apps locally and deploy to any cloud.
https://nitric.io
Apache License 2.0
26 stars 10 forks source link

Multiple API routes with the same path and method share local history in dashboard #806

Closed davemooreuws closed 4 weeks ago

davemooreuws commented 1 month ago

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:

  1. Use the default ts template.
  2. Replace the hello.ts file with this:
    
    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;

return ctx; });

second.get("/hello/:name", async (ctx) => { const { name } = ctx.req.params;

ctx.res.body = Hello ${name} from second;

return ctx; });


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
nitric-bot commented 4 weeks ago

: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: