pull SSL certs via API

This commit is contained in:
2024-02-07 00:07:51 -05:00
parent 5f2f262806
commit b32b2de001
3 changed files with 35 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
'use strict';
const router = require('express').Router();
const {getCert} = require('../models/cert');
router.get('/:host', async function(req, res, next){
try{
return res.json(await getCert(req.params.host));
}catch(error){
return next(error);
}
});
module.exports = router;