Skip to content

Commit 3a06780

Browse files
committed
fix: passport import
1 parent 3411c05 commit 3a06780

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/webui.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import express = require('express');
22

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';
84
import {Strategy} from 'passport-google-oauth20';
95
import {URL} from 'url';
106
import {ensureLoggedIn} from 'connect-ensure-login';
7+
import fsPath from 'path';
8+
import nunjucks from 'nunjucks';
9+
import passport from 'passport';
1110

1211
import CookieSession = require('cookie-session');
1312

@@ -205,7 +204,7 @@ export function configure(app: express.Application) {
205204
return;
206205
}
207206
try {
208-
const apiHandler = new api.ApiHandler();
207+
const apiHandler = new ApiHandler();
209208
const method = req.path.slice('/fileset/api/'.length);
210209
const reqData = req.body || {};
211210
const data = await apiHandler.handle(req, method, reqData);

0 commit comments

Comments
 (0)