Mercurial > hg > orthanc
diff PalantirServer/main.cpp @ 12:c38716a8a146
static link against MSVC CRT
author | Administrator@jodogne-w01 |
---|---|
date | Fri, 20 Jul 2012 12:14:01 +0200 |
parents | 67a6978503b7 |
children | e85455ff6039 |
line wrap: on
line diff
--- a/PalantirServer/main.cpp Fri Jul 20 11:46:52 2012 +0200 +++ b/PalantirServer/main.cpp Fri Jul 20 12:14:01 2012 +0200 @@ -107,8 +107,9 @@ try { - ServerIndex index("server"); - MyDicomStoreFactory storeScp(index, "server"); + std::string storageDirectory = GetGlobalStringParameter("StorageDirectory", "PalantirStorage"); + ServerIndex index(storageDirectory); + MyDicomStoreFactory storeScp(index, storageDirectory); { // DICOM server @@ -128,7 +129,7 @@ httpServer.RegisterHandler(new FilesystemHttpHandler("/app", PALANTIR_PATH "/PalantirExplorer")); #endif - httpServer.RegisterHandler(new PalantirRestApi(index, "server")); + httpServer.RegisterHandler(new PalantirRestApi(index, storageDirectory)); // GO !!! httpServer.Start();