chnak
chnak
How can I dynamically determine subdomains and then route to different routes?  I change the URL in the middleware, but it does not route to the corresponding router.
I need different subdomains to link to different routes, but it seems this can't be achieved in Total4?
I'll give it a try, thank you very much.
> Hmm. I'm looking at the source code, and maybe it works with subdomain routing. I'm not sure if this works. > > ```js > // Route with flags >...
```javascript ROUTE('GET /', function(){this.json('index')}); ROUTE('GET [admin]/', function(){this.json('admin')}); ROUTE('GET [foliko]/', function(){this.json('foliko')}); ``` I tried this method, but it doesn't seem to work. I really can't find a solution, so I have...
Okay, thank you very much, I'll give it a try