chnak

Results 6 comments of chnak

How can I dynamically determine subdomains and then route to different routes? ![image](https://github.com/totaljs/framework4/assets/791734/05811b39-5ab8-4040-9934-3095f91bec38) 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