Beginning of work on templates.
This commit is contained in:
parent
47b8d80c22
commit
508d6b3b2f
40 changed files with 1685 additions and 1031 deletions
|
@ -11,8 +11,7 @@ router.postAsync('/blacklist-table', passport.loggedIn, async (req, res) => {
|
|||
});
|
||||
|
||||
router.postAsync('/blacklist', passport.loggedIn, passport.csrfProtection, async (req, res) => {
|
||||
await blacklist.add(req.context, req.body.email);
|
||||
return res.json();
|
||||
return res.json(await blacklist.add(req.context, req.body.email));
|
||||
});
|
||||
|
||||
router.deleteAsync('/blacklist/:email', passport.loggedIn, passport.csrfProtection, async (req, res) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue