File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-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
+
2
4
require ( 'babel-polyfill' )
3
5
require ( 'isomorphic-fetch' )
4
- const Router = require ( 'express' ) . Router
5
- const passport = require ( 'passport' )
6
- const MattermostClient = require ( 'mattermost-redux/client/client4' ) . default
7
- const OAuthStrategy = require ( 'passport-oauth2' ) . Strategy
8
- const config = require ( '../../config' )
9
- const { setReturnToFromReferer, passportGeneralCallback } = require ( '../utils' )
10
-
11
- const mattermostAuth = module . exports = Router ( )
6
+ import MattermostClient from "mattermost-redux/client/client4" ;
7
+ import { Strategy as OAuthStrategy } from "passport-oauth2" ;
8
+
9
+ import * as config from "../../config" ;
10
+ import { passportGeneralCallback , setReturnToFromReferer } from "../utils" ;
11
+
12
+
13
+ const mattermostAuth = Router ( )
14
+ export = module . exports
12
15
13
16
const mattermostClient = new MattermostClient ( )
14
17
You can’t perform that action at this time.
0 commit comments