Hello Everyone,
I'm attempting to create a site that allows a user to sign up and
access their content through a subdomain. Something like Tumblr, when
a user signs up, they have access to their posts through
http://<username>.
tumblr.com/
The way I was hoping it would work, is that the username would be
pulled from the url and set on the input model, just like it's done
for other properties on the input model passed in through the query
string. Then my actions would be expecting this property to be set and
could put the request in the proper context.
I've done a bit of digging around in Fubu and it looks like I'll need
to either make a couple changes to RouteDefinition or create my own
implementation of IRouteDefinition in order to do this. It looks like
the current implementation of RouteDefinition is concerned with only
the path of the url and doesn't care about the rest of it.
I think implementing this will require changes in quite a few places
within FubuMVC. When creating urls and model binding is what comes to
mind immediately.
I wanted to validate this with everyone and make sure I'm headed in
the right direction before I spend too much time possibly headed down
the wrong path. Does this sound like the proper course of action, or
would there be a better/more elegant way to achieve the same results?
Thanks,
Rex