Vibe.d rest & web service?
Jesse Phillips
Jesse.K.Phillips+D at gmail.com
Wed Feb 7 17:57:09 UTC 2018
On Wednesday, 7 February 2018 at 17:04:13 UTC, Nicholas Wilson
wrote:
> Is it possible to have some urls routed to serve content and
> some to receive JSON in the same class?
This seems unlikely to me, the function signature doesn't provide
a way to distinguish between REST and not.
I'm also not sure it is necessary, you can certainly have
multiple class which provide REST and Web endpoints. You can even
dynamically build routes within a route.
More information about the Digitalmars-d-learn
mailing list