mirror of
https://github.com/CyberL1/dlinux-dashboard.git
synced 2025-01-22 01:19:18 -05:00
fix: route /containers/:name
should be /containers/:id
This commit is contained in:
parent
1bd06e1a4c
commit
928bc2f15e
@ -4,6 +4,6 @@ import type { FastifyInstance, FastifyRequest } from "fastify";
|
|||||||
|
|
||||||
export default (fastify: FastifyInstance) => {
|
export default (fastify: FastifyInstance) => {
|
||||||
fastify.get("/", (req: FastifyRequest<{ Params: Container }>) => {
|
fastify.get("/", (req: FastifyRequest<{ Params: Container }>) => {
|
||||||
return inspectContainer(req.params.name);
|
return inspectContainer(req.params.id);
|
||||||
});
|
});
|
||||||
};
|
};
|
@ -1,4 +1,5 @@
|
|||||||
export interface Container {
|
export interface Container {
|
||||||
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
image: string;
|
image: string;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user