Skip to content

Commit

Permalink
Add a note about server-side endoints
Browse files Browse the repository at this point in the history
  • Loading branch information
lyyder committed Feb 13, 2020
1 parent c014d09 commit eedcb40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/routeConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ const draftSlug = 'draft';

const RedirectToLandingPage = () => <NamedRedirect name="LandingPage" />;

// NOTE: Most server-side endpoints are prefixed with /api. Requests to those
// endpoints are indended to be handled in the server instead of the browser and
// they will not render the application. So remember to avoid routes starting
// with /api and if you encounter clashing routes see server/index.js if there's
// a conflicting route defined there.

// Our routes are exact by default.
// See behaviour from Routes.js where Route is created.
const routeConfiguration = () => {
Expand Down

0 comments on commit eedcb40

Please sign in to comment.