File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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" ;
24
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" ;
109
11- const gitlabAuth = module . exports = Router ( )
10+ const gitlabAuth = Router ( )
11+ export = gitlabAuth
1212
1313const gitlabAuthStrategy = new GitlabStrategy ( {
1414 baseURL : config . gitlab . baseURL ,
You can’t perform that action at this time.
0 commit comments