mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 07:59:35 -05:00
use same docroot in retroshare-nogui as in retroshare-gui
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8188 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fd5c53fad7
commit
4c5d8c2ede
@ -75,7 +75,7 @@ int main(int argc, char **argv)
|
||||
{
|
||||
#ifdef ENABLE_WEBUI
|
||||
|
||||
std::string docroot = "./";
|
||||
std::string docroot = "";
|
||||
uint16_t httpPort = 0;
|
||||
std::string listenAddress;
|
||||
bool allowAllIps = false;
|
||||
@ -93,6 +93,9 @@ int main(int argc, char **argv)
|
||||
std::cerr << args.usage() << std::endl;
|
||||
}
|
||||
|
||||
if(docroot.empty())
|
||||
docroot = resource_api::getDefaultDocroot();
|
||||
|
||||
resource_api::ApiServer api;
|
||||
resource_api::RsControlModule ctrl_mod(argc, argv, api.getStateTokenServer(), &api, true);
|
||||
api.addResourceHandler("control", dynamic_cast<resource_api::ResourceRouter*>(&ctrl_mod), &resource_api::RsControlModule::handleRequest);
|
||||
|
Loading…
Reference in New Issue
Block a user