relax Makis, you will not die tomorrow, be careful here.

Gerasimos (Makis) Maropoulos 2019-07-03 01:26:27 +03:00
parent 0ba39c18ce
commit 327278518c
No known key found for this signature in database
GPG Key ID: F169457BBDA4ACF4

@ -9,7 +9,7 @@ Subdomains are separated into two categories: **static** and **dynamic/wildcard*
We use the `Subdomain` and `WildcardSubdomain` methods of an `iris.Party` or `iris.Application` to register subdomains. We use the `Subdomain` and `WildcardSubdomain` methods of an `iris.Party` or `iris.Application` to register subdomains.
The `Subdomain` method returns a new `Party` which is responsible to register routes to The `Subdomain` method returns a new `Party` which is responsible to register routes to
his specific "subdomain". this specific "subdomain".
The only difference from a regular `Party` is that if called from a child party then the subdomain will be prepended to the path instead of appended. The only difference from a regular `Party` is that if called from a child party then the subdomain will be prepended to the path instead of appended.
So if `app.Subdomain("admin").Subdomain("panel")` then the result is: `"panel.admin."`. So if `app.Subdomain("admin").Subdomain("panel")` then the result is: `"panel.admin."`.