This PR adds the function to create your own routes and add static pages or redirects to your server in them. Mainly to include a privacy policy and terms and conditions.
just define your custom pages in the config (documentation will be done soon)
In this case /privacy and /terms-and-conditions would return or redirect the fallback page, as no language is given in the query params. If you add ?lang=en the page, defined in langs will be displayed.
To Do:
[x] Joi schema
If you use a language as query parameter, that is not defined in the config, you will be redirected to the fallback page.
Motivation and Context
We will need this function to bring the Vocascan Cloud one step closer to the public
Screenshots / GIFs (if appropriate):
Checklist
[x] I have read the CONTRIBUTING document.
[x] I have considered the accessibility of my changes (i.e. did I add proper content descriptions to images, or run my changes with talkback enabled?)
Description
This PR adds the function to create your own routes and add static pages or redirects to your server in them. Mainly to include a privacy policy and terms and conditions.
just define your custom pages in the config (documentation will be done soon)
Info: The
langs
prop is not required.In this case
/privacy
and/terms-and-conditions
would return or redirect the fallback page, as no language is given in the query params. If you add?lang=en
the page, defined inlangs
will be displayed.To Do:
If you use a language as query parameter, that is not defined in the config, you will be redirected to the fallback page.
Motivation and Context
We will need this function to bring the Vocascan Cloud one step closer to the public
Screenshots / GIFs (if appropriate):
Checklist
Resolves