Skip to content

Commit

Permalink
fix: add legacy routes
Browse files Browse the repository at this point in the history
  • Loading branch information
samialdury committed Feb 24, 2022
1 parent a95f01a commit cf8e8be
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/proxy/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,27 @@ export const ROUTES: IProxyRouteConfig[] = [
prefix: '/web-writer',
stripPrefix: true,
},
// Legacy routes
{
name: 'webWriterGetRecord',
targetHost: config.get('proxy.hosts.webSdkWriter'),
prefix: '/record',
stripPrefix: false,
},
{
name: 'webWriterGetRecordV2',
targetHost: config.get('proxy.hosts.webSdkWriter'),
prefix: '/v2/record',
stripPrefix: false,
},
//
// {
// name: 'sdkWriter',
// targetHost: config.get('proxy.hosts.mobileSdkWriter'),
// prefix: '/sdk-writer',
// stripPrefix: true,
// },
//
// Request without prefix -> web-sdk
{
name: 'webSdk',
Expand Down

0 comments on commit cf8e8be

Please sign in to comment.