Skip to content

Commit 4fa2ce8

Browse files
authored
Merge pull request #1654 from avinassh/docs-path
Document path based routing usage in multi tenant databases
2 parents fd1f5c4 + 85f1182 commit 4fa2ce8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docs/USER_GUIDE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,12 @@ For example, if you have the following entries in your `/etc/hosts` file:
237237
You can access `db1` with the `http://db1.local:8080`URL and `db2` with `http://db2.local:8080`.
238238
The database files for the databases are stored in `<data dir>/dbs/db1` and `<data dir/dbs/db2`, respectively.
239239

240+
### Path based routing
241+
242+
For local development and testing, you can also connect to your databases by specifying the database namespace in the URL path.
243+
244+
You can access namespace `db1` with the `http://local:8080/dev/db1` URL and `db2` with `http://local:8080/dev/db2`, respectively.
245+
240246
### Wildcard domain for development
241247

242248
If you don't feel like editing `/etc/hosts` each time you want to test a new namespace, you can use any domain

0 commit comments

Comments
 (0)