fix: route /containers/:name should be /containers/:id

This commit is contained in:
CyberL1 2025-01-07 10:22:40 +01:00
parent 1bd06e1a4c
commit 928bc2f15e
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,6 @@ import type { FastifyInstance, FastifyRequest } from "fastify";
export default (fastify: FastifyInstance) => {
fastify.get("/", (req: FastifyRequest<{ Params: Container }>) => {
return inspectContainer(req.params.name);
return inspectContainer(req.params.id);
});
};

View File

@ -1,4 +1,5 @@
export interface Container {
id: string;
name: string;
image: string;
}