feat: implement VM SKU chooser tool with filtering and location persistence

This commit is contained in:
2026-04-20 18:14:32 +02:00
parent 5304b07d17
commit cc4ff948c5
12 changed files with 606 additions and 8 deletions

View File

@@ -110,6 +110,15 @@ const makeApp = () => {
}
});
app.get("/api/vm-skus", async (req, res, next) => {
try {
const { location } = queryLocation.parse(req.query);
res.json(await requireAzure().getVmSkus(location));
} catch (error) {
next(error);
}
});
app.get("/api/templates", (_req, res) => {
res.json(templates.getTemplates());
});