Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 2x 2x 2x 2x 2x 1x 1x 1x 1x 3x | import * as express from 'express'
import { sendResponse } from '@commun/core'
import { AdminController } from '../controllers/AdminController'
export const AdminPluginRouter = express.Router()
.get('/:pluginName', (req, res, next) =>
sendResponse(req, res, next, new AdminController().getPlugin(req, res)))
.put('/:pluginName', (req, res, next) =>
sendResponse(req, res, next, new AdminController().updatePlugin(req, res)))
.post('/:pluginName/templates', (req, res, next) =>
sendResponse(req, res, next, new AdminController().createOrUpdateEmailTemplate(req, res)))
// Emails
.put('/:pluginName/templates/:templateName', (req, res, next) =>
sendResponse(req, res, next, new AdminController().createOrUpdateEmailTemplate(req, res)))
.delete('/:pluginName/templates/:templateName', (req, res, next) =>
sendResponse(req, res, next, new AdminController().deleteEmailTemplate(req, res)))
// Users
.put('/users/credentials/:provider', (req, res, next) =>
sendResponse(req, res, next, new AdminController().updateSocialLoginCredentials(req, res)))
|