summaryrefslogtreecommitdiff
path: root/design-documents
diff options
context:
space:
mode:
Diffstat (limited to 'design-documents')
-rw-r--r--design-documents/015-merchant-backoffice-routing.rst21
-rw-r--r--design-documents/index.rst1
2 files changed, 13 insertions, 9 deletions
diff --git a/design-documents/015-merchant-backoffice-routing.rst b/design-documents/015-merchant-backoffice-routing.rst
index 3cf7e80f..49a5dede 100644
--- a/design-documents/015-merchant-backoffice-routing.rst
+++ b/design-documents/015-merchant-backoffice-routing.rst
@@ -5,9 +5,11 @@ Design Doc 015: Merchant backoffice Routing
Motivation
==========
-A well defined routing will allow users to share backoffice links pointing directly into instance pages (settings, orders, products, etc...)
-The backoffice should load from the instance URL and then allow a internal
-rounting of the views with the posibility to accessing them directly when
+A well defined routing will allow users to share backoffice links pointing
+directly into instance pages (settings, orders, products, etc...)
+
+The backoffice should load from the instance URL and then allow a internal
+rounting of the views with the posibility to accessing them directly when
sharing a link.
@@ -17,8 +19,8 @@ Application rounting
There are 2 type of rounting: external and internal
external: define how the pathname of the URL will be interpreted to infer
- which instance is being accessed. Also the full URL is used as default when
- no BACKEND_URL exist yet in localStorage. After login, the BACKEND_URL is saved
+ which instance is being accessed. Also the full URL is used as default when no
+ BACKEND_URL exist yet in localStorage. After login, the BACKEND_URL is saved
in localStorage and the pathname is parsed to infer the instance id.
internal: define wich view will be rendered. It is implemented using a hash
@@ -144,10 +146,11 @@ backend token have the key ``backend-token``.
Default instance user is expected to jump from one instance to another in the
same session so all queries to the backend will be to
-``${BACKEND_URL}/instances/${CURRENT_INSTANCE_ID}`` with the ``BACKEND_URL`` provided in
-the login form and using the token expected to ``$CURRENT_INSTANCE_ID``.
+``${BACKEND_URL}/instances/${CURRENT_INSTANCE_ID}`` with the ``BACKEND_URL``
+provided in the login form and using the token expected to
+``$CURRENT_INSTANCE_ID``.
-Queries from a normal user will be done directly to ``$BACKEND_URL`` and using token
-from the login form.
+Queries from a normal user will be done directly to ``$BACKEND_URL`` and using
+token from the login form.
diff --git a/design-documents/index.rst b/design-documents/index.rst
index bc43baec..89d6e370 100644
--- a/design-documents/index.rst
+++ b/design-documents/index.rst
@@ -24,3 +24,4 @@ and protocol.
012-fee-schedule-metrics
013-peer-to-peer-payments
014-merchant-backoffice-ui
+ 015-merchant-backoffice-routing