-
Notifications
You must be signed in to change notification settings - Fork 7
/
_redirects
14 lines (11 loc) · 988 Bytes
/
_redirects
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# this will be a specific url to keep backward compatibility with oa original url
/2.0/schema.json https://schema.openattestation.com/2.0/schema.json
# since OA v3 context paths were incorrectly categorised as 1.0, redirect to the correct 3.0 path to remain backwards compatible
# more info: https://github.com/Open-Attestation/schemata/pull/78#issuecomment-1664947243
/com/openattestation/1.0/CustomContext.json /com/openattestation/3.0/CustomContext.json
/com/openattestation/1.0/DrivingLicenceCredential.json /com/openattestation/3.0/DrivingLicenceCredential.json
/com/openattestation/1.0/OpenAttestation.v3.json /com/openattestation/3.0/OpenAttestation.v3.json
# redirect any open-attestation schema to the host as this schema is built by a specific library
/sg/gov/open-attestation/* https://schema.openattestation.com/:splat
# directly map any url to resolve to the schema.json file so that it's not needed to specify schema.json at the end of the URL
/* /:splat/schema.json 200