File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
- 'use strict'
1
+ import { Router } from "express" ;
2
+ import * as passport from "passport" ;
3
+ import { Strategy as GithubStrategy } from "passport-github" ;
4
+ import * as config from "../../config" ;
5
+ import * as response from "../../response" ;
6
+ import { passportGeneralCallback , setReturnToFromReferer } from "../utils" ;
7
+ import { URL } from "url" ;
2
8
3
- const Router = require ( 'express' ) . Router
4
- const passport = require ( 'passport' )
5
- const GithubStrategy = require ( 'passport-github' ) . Strategy
6
- const config = require ( '../../config' )
7
- const response = require ( '../../response' )
8
- const { setReturnToFromReferer, passportGeneralCallback } = require ( '../utils' )
9
- const { URL } = require ( 'url' )
10
-
11
- const githubAuth = module . exports = Router ( )
9
+ const githubAuth = Router ( )
10
+ export = githubAuth
12
11
13
12
function githubUrl ( path ) {
14
13
return config . github . enterpriseURL && new URL ( path , config . github . enterpriseURL ) . toString ( )
You can’t perform that action at this time.
0 commit comments