File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
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 GitlabStrategy } from "passport-gitlab2" ;
2
4
3
- const Router = require ( 'express' ) . Router
4
- const passport = require ( 'passport' )
5
- const GitlabStrategy = require ( 'passport-gitlab2' ) . Strategy
6
- const config = require ( '../../config' )
7
- const response = require ( '../../response' )
8
- const { setReturnToFromReferer, passportGeneralCallback } = require ( '../utils' )
9
- const HttpsProxyAgent = require ( 'https-proxy-agent' )
5
+ import * as config from "../../config" ;
6
+ import * as response from "../../response" ;
7
+ import { passportGeneralCallback , setReturnToFromReferer } from "../utils" ;
8
+ import * as HttpsProxyAgent from "https-proxy-agent" ;
10
9
11
- const gitlabAuth = module . exports = Router ( )
10
+ const gitlabAuth = Router ( )
11
+ export = gitlabAuth
12
12
13
13
const gitlabAuthStrategy = new GitlabStrategy ( {
14
14
baseURL : config . gitlab . baseURL ,
You can’t perform that action at this time.
0 commit comments