| Total Complexity | 1 |
| Complexity/F | 1 |
| Lines of Code | 15 |
| Function Count | 1 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | 'use strict' |
||
| 2 | |||
| 3 | import passport from 'passport' |
||
| 4 | import { confirmations } from '../controllers' |
||
| 5 | |||
| 6 | export default function (server) { |
||
| 7 | server.get({ |
||
| 8 | name: 'confirmation//confirm', |
||
| 9 | path: '/confirmation' |
||
| 10 | }, |
||
| 11 | passport.authenticate('jwtUrlQueryStrategy', { |
||
| 12 | session: false |
||
| 13 | }), |
||
| 14 | confirmations.confirm) |
||
| 15 | } |
||
| 16 |