[Cppcms-users] non-greedy moint points
Brought to you by:
artyom-beilis
|
From: Marcel H. <ke...@co...> - 2013-07-14 22:17:03
|
Hi everybody,
now my seconds problem :/
I have a json rpc server running a async app via an intrusive ptr.
Also I'd like to have a sync app that will serve my "static" HTML-pages.
The current setup is
> booster::intrusive_ptr<WebAPI> bgworker(new WebAPI(srv));
>
> srv.applications_pool().mount(bgworker,
> cppcms::mount_point("/webapi(/(.*))", 1));
> srv.applications_pool().mount(cppcms::applications_factory<Dispatcher>(),
> cppcms::mount_point("/index(/(.*))", 1));
But this is not what I want. I want to provide all rpc calls under the
webapi domain and everything else under /, so nothing more.
Now I have to write /index/edit, instead of /edit -> that's annoying.
Any help?
|