added to remote repo
This commit is contained in:
1 parent
8697c9f405
commit
cc599b6e18
8049 files changed
+1096323
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { Router } from 'express';
|
||||
import { listSnapshotsForVm } from '../validators.js';
|
||||
|
||||
export const snapshotsRouter = Router();
|
||||
|
||||
snapshotsRouter.get('/:vmName', async (req, res, next) => {
|
||||
try {
|
||||
res.json(await listSnapshotsForVm(req.params.vmName));
|
||||
} catch (error) {
|
||||
next(error);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user