Skip to content

Commit

Permalink
Added textpresso rewrites to test
Browse files Browse the repository at this point in the history
  • Loading branch information
valearna committed May 6, 2024
1 parent a315d01 commit 5da7c84
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cdk/amplify-test-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@ export class AmplifyTestStack extends cdk.Stack {
{ source: '/swagger-ui/<*>', target: 'https://test-alb.alliancegenome.org/swagger-ui/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/openapi', target: 'https://test-alb.alliancegenome.org/openapi', status: amplify.RedirectStatus.REWRITE },

{ source: '/textpresso/sgd', target: 'https://test.alliancegenome.org/textpresso/sgd/tpc', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/textpresso/sgd/', target: 'https://test.alliancegenome.org/textpresso/sgd/tpc', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/textpresso/sgd/<*>', target: 'https://sgd-textpresso.alliancegenome.org/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/textpresso/wb', target: 'https://test.alliancegenome.org/textpresso/wb/tpc', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/textpresso/wb/', target: 'https://test.alliancegenome.org/textpresso/wb/tpc', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/textpresso/wb/<*>', target: 'https://wb-textpresso.alliancegenome.org/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/textpresso/mgi', target: 'https://test.alliancegenome.org/textpresso/mgi/tpc', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/textpresso/mgi/', target: 'https://test.alliancegenome.org/textpresso/mgi/tpc', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/textpresso/mgi/<*>', target: 'https://mgi-textpresso.alliancegenome.org/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/textpresso/zfin', target: 'https://test.alliancegenome.org/textpresso/zfin/tpc', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/textpresso/zfin/', target: 'https://test.alliancegenome.org/textpresso/zfin/tpc', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/textpresso/zfin/<*>', target: 'https://zfin-textpresso.alliancegenome.org/<*>', status: amplify.RedirectStatus.REWRITE },
{ source: '/textpresso/fb', target: 'https://test.alliancegenome.org/textpresso/fb/tpc', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/textpresso/fb/', target: 'https://test.alliancegenome.org/textpresso/fb/tpc', status: amplify.RedirectStatus.PERMANENT_REDIRECT },
{ source: '/textpresso/fb/<*>', target: 'https://fb-textpresso.alliancegenome.org/<*>', status: amplify.RedirectStatus.REWRITE },

{ source: '/<*>', target: '/index.html', status: amplify.RedirectStatus.NOT_FOUND_REWRITE },
{ source: '</^[^.]+$/>', target: '/index.html', status: amplify.RedirectStatus.REWRITE }
];
Expand Down

0 comments on commit 5da7c84

Please sign in to comment.