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

mozilla / blurts-server / #11912

pending completion
#11912

push

circleci

web-flow
Merge pull request #2755 from mozilla/MNTOR-1046-User-menu

MNTOR-1046: Add user menu

282 of 1172 branches covered (24.06%)

Branch coverage included in aggregate %.

27 of 27 new or added lines in 4 files covered. (100.0%)

959 of 3117 relevant lines covered (30.77%)

2.5 hits per line

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

0.0
/src/routes/user.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 { requireSessionUser } from '../middleware/auth.js'
9
import { logout } from '../controllers/auth.js'
10
import { dashboardPage } from '../controllers/dashboard.js'
11
import { breachesPage } from '../controllers/breaches.js'
12
import { dataRemovalPage } from '../controllers/data-removal.js'
13
import { settingsPage } from '../controllers/settings.js'
14

15
const router = Router()
×
16

17
// dashboard page
18
router.get('/dashboard', requireSessionUser, dashboardPage)
×
19

20
// data breaches detail page
21
router.get('/breaches', requireSessionUser, breachesPage)
×
22

23
// data removal page
24
router.get('/data-removal', requireSessionUser, dataRemovalPage)
×
25

26
// settings page
27
router.get('/settings', requireSessionUser, settingsPage)
×
28

29
// sign the user out
30
router.get('/logout', asyncMiddleware(logout))
×
31

32
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