• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / blurts-server / 4040bc25-7f30-464b-958e-746a756a4e44

pending completion
4040bc25-7f30-464b-958e-746a756a4e44

push

circleci

GitHub
Merge pull request #2790 from mozilla/MNTOR-1056-Migrate-breach-alert-email

282 of 1375 branches covered (20.51%)

Branch coverage included in aggregate %.

174 of 174 new or added lines in 17 files covered. (100.0%)

959 of 3709 relevant lines covered (25.86%)

4.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/routes/admin.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
  * License, v. 2.0. If a copy of the MPL was not distributed with this
3
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
import { Router } from 'express'
6

7
import { asyncMiddleware } from '../middleware/util.js'
8
import { adminPage } from '../controllers/admin.js'
9
import { requireAdminUser } from '../middleware/auth.js'
10
import { emailsPage, sendTestEmail } from '../controllers/email-preview.js'
11

12
const router = Router()
×
13

14
router.get('/', requireAdminUser, adminPage)
×
15

16
// emails page
17
router.get(['/emails', '/emails/:template'], requireAdminUser, emailsPage)
×
18

19
// send test email
20
router.post(
×
21
  '/send-test-email',
22
  requireAdminUser,
23
  asyncMiddleware(sendTestEmail)
24
)
25

26
export default router
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc