[Cppcms-users] Multiple level dispatching
Brought to you by:
artyom-beilis
|
From: Sab <rim...@gm...> - 2013-07-30 12:09:46
|
Hi all,
I'm trying to use multiple level dispatching and it seems to work for me
different than the tutorials show.
My request is GET myapp/Test/Settings.
If I pass only "/Settings" to the dispatcher in the subclass, it doesn't get
matched. It only works if I pass "/Test/Settings" to the dispatcher.
Concretely:
In my main class I have:
attach(new TestHandler::TestHandler(srv), "/Test(/(.*))?",1);
In my TestHandler class constructor I should have have:
dispatcher().assign("/Settings", &TestHandler::ProcessSettings, this);
but must have:
dispatcher().assign("/Test/Settings", &TestHandler::ProcessSettings, this);
to make it work. Am I doing something wrong?
|