metadatacenter / cedar-repo-server

Backend services to support repository operations on CEDAR metadata articats
Other
0 stars 0 forks source link

Rewrite/forward .net repo route resource IRIs #6

Open martinjoconnor opened 6 years ago

martinjoconnor commented 6 years ago

For example, if I have a resource with the ID https://repo.metadatacenter.net/templates/12131 and try to retrieve that resource directly via its IRI (with authentication) the call should get seamlessly redirected to the new repo.metadatacenter.org route and return the representation of the resource.

We can't return a 301 because that resource has NOT moved.

We should rewrite (via Nginx, presumably) it to something like:

https://repo.metadatacenter.ORG?resource=URLENCODE(https://repo.metadatacenter.net/templates/12131)