feat: implement VM SKU chooser tool with filtering and location persistence
This commit is contained in:
@@ -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());
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user