"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = depsRoutes;
async function depsRoutes(fastify) {
    fastify.get("/list/:projectId", async (req) => {
        const { projectId } = req.params;
        const data = await fastify.core.deps.list(projectId);
        return data;
    });
    fastify.post("/install/:projectId", async (req) => {
        const { projectId } = req.params;
        const body = req.body;
        await fastify.core.deps.install(projectId, body);
        return { ok: true };
    });
    fastify.post("/uninstall/:projectId", async (req) => {
        const { projectId } = req.params;
        const body = req.body;
        await fastify.core.deps.uninstall(projectId, body);
        return { ok: true };
    });
    fastify.post("/devtools/install/:projectId", async (req) => {
        return { ok: true };
    });
}
