File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
import express = require( 'express' ) ;
2
2
3
- import * as api from './api' ;
4
- import * as fsPath from 'path' ;
5
- import * as nunjucks from 'nunjucks' ;
6
- import * as passport from 'passport' ;
7
-
3
+ import { ApiHandler } from './api' ;
8
4
import { Strategy } from 'passport-google-oauth20' ;
9
5
import { URL } from 'url' ;
10
6
import { ensureLoggedIn } from 'connect-ensure-login' ;
7
+ import fsPath from 'path' ;
8
+ import nunjucks from 'nunjucks' ;
9
+ import passport from 'passport' ;
11
10
12
11
import CookieSession = require( 'cookie-session' ) ;
13
12
@@ -205,7 +204,7 @@ export function configure(app: express.Application) {
205
204
return ;
206
205
}
207
206
try {
208
- const apiHandler = new api . ApiHandler ( ) ;
207
+ const apiHandler = new ApiHandler ( ) ;
209
208
const method = req . path . slice ( '/fileset/api/' . length ) ;
210
209
const reqData = req . body || { } ;
211
210
const data = await apiHandler . handle ( req , method , reqData ) ;
You can’t perform that action at this time.
0 commit comments