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

mozilla / blurts-server / 34cde2c5-46cb-4312-850d-fcea45fa1c76

pending completion
34cde2c5-46cb-4312-850d-fcea45fa1c76

Pull #2959

circleci

Vincent
fixup! Pretend HTMLElement.shadowRoot is always set
Pull Request #2959: Add type checking for a couple of files

282 of 1619 branches covered (17.42%)

Branch coverage included in aggregate %.

31 of 31 new or added lines in 6 files covered. (100.0%)

959 of 4333 relevant lines covered (22.13%)

3.69 hits per line

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

0.0
/src/routes/index.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 AppConstants from '../app-constants.js'
6
import express from 'express'
7

8
import adminRoutes from './admin.js'
9
import authRoutes from './auth.js'
10
import dockerFlowRoutes from './dockerflow.js'
11
import hibpApiRoutes from './api/v1/hibp.js'
12
import previewRoutes from './preview.js'
13
import userApiRoutes from './api/v1/user.js'
14
import userRoutes from './user.js'
15
import breachesRoutes from './breaches.js'
16
import breachDetailsRoutes from './breach-details.js'
17

18
import { dialog } from '../controllers/dialog.js'
19
import { landingPage } from '../controllers/landing.js'
20
import { notFoundPage } from '../controllers/notFound.js'
21
import { notFound } from '../middleware/error.js'
22

23
const router = express.Router()
×
24

25
router.get('/', landingPage)
×
26
router.get('*/dialog/:name', dialog)
×
27

28
router.use('/', dockerFlowRoutes)
×
29
router.use('/admin', adminRoutes)
×
30
router.use('/api/v1/hibp/', hibpApiRoutes)
×
31
router.use('/api/v1/user/', userApiRoutes)
×
32
router.use('/oauth', authRoutes)
×
33
router.use('/user', userRoutes)
×
34
router.use('/breaches', breachesRoutes)
×
35
router.use('/breach-details', breachDetailsRoutes)
×
36

37
// Do not make the non-auth previews available on prod
38
if (AppConstants.NODE_ENV !== 'production') {
×
39
  router.use('/preview', previewRoutes)
×
40
}
41

42
router.use(notFound)
×
43
router.use(notFoundPage)
×
44

45
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