Skip to content

Commit 28f4da2

Browse files
committed
chore(mbe, ebe): refactor routes into their own files
Ticket: WP-4678
1 parent 907cba9 commit 28f4da2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/__tests__/routes.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import express from 'express';
22
import request from 'supertest';
3-
import { setupRoutes } from '../routes';
3+
import { setupRoutes } from '../routes/enclaved';
44

55
describe('Routes', () => {
66
let app: express.Application;

src/masterExpressApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import express from 'express';
22
import https from 'https';
33
import http from 'http';
4-
import { BitGoOptions } from 'bitgo';
54
import { SSL_OP_NO_TLSv1, SSL_OP_NO_TLSv1_1 } from 'constants';
65

76
import { MasterExpressConfig, config, isMasterExpressConfig, TlsMode } from './config';
@@ -104,6 +103,7 @@ export function app(cfg: MasterExpressConfig): express.Application {
104103

105104
// Setup master express routes
106105
setupRoutes(app, cfg);
106+
setupRoutes(app, cfg);
107107

108108
// Add error handler
109109
app.use(createErrorHandler());

0 commit comments

Comments
 (0)