diff --git a/src/routes/containers/_name.ts b/src/routes/containers/_id.ts similarity index 87% rename from src/routes/containers/_name.ts rename to src/routes/containers/_id.ts index b65664f..b721f83 100644 --- a/src/routes/containers/_name.ts +++ b/src/routes/containers/_id.ts @@ -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); }); }; diff --git a/src/types/Container.ts b/src/types/Container.ts index c4ae786..db6273d 100644 --- a/src/types/Container.ts +++ b/src/types/Container.ts @@ -1,4 +1,5 @@ export interface Container { + id: string; name: string; image: string; }