Skip to content

Commit 2b582ce

Browse files
committed
ts: lib/auth/gitlab/index.js
1 parent 39ed3fc commit 2b582ce

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/auth/gitlab/index.js renamed to lib/auth/gitlab/index.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
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

1313
const gitlabAuthStrategy = new GitlabStrategy({
1414
baseURL: config.gitlab.baseURL,

0 commit comments

Comments
 (0)