comparison OrthancServer/main.cpp @ 1437:02f5a3f5c0a0

access to the REST API from Lua
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2015 18:41:33 +0200
parents 0a3e3be59094
children 895ab369d63c
comparison
equal deleted inserted replaced
1436:0a3e3be59094 1437:02f5a3f5c0a0
501 { 501 {
502 storage.reset(Configuration::CreateStorageArea()); 502 storage.reset(Configuration::CreateStorageArea());
503 } 503 }
504 504
505 context->SetStorageArea(*storage); 505 context->SetStorageArea(*storage);
506 506 context->GetLua().SetOrthancRestApi(restApi);
507 507
508 // GO !!! Start the requested servers 508 // GO !!! Start the requested servers
509 if (Configuration::GetGlobalBoolParameter("HttpServerEnabled", true)) 509 if (Configuration::GetGlobalBoolParameter("HttpServerEnabled", true))
510 { 510 {
511 #if ENABLE_PLUGINS == 1 511 #if ENABLE_PLUGINS == 1
546 #if ENABLE_PLUGINS == 1 546 #if ENABLE_PLUGINS == 1
547 context->ResetPlugins(); 547 context->ResetPlugins();
548 plugins.ResetOrthancRestApi(); 548 plugins.ResetOrthancRestApi();
549 LOG(WARNING) << " Plugins have stopped"; 549 LOG(WARNING) << " Plugins have stopped";
550 #endif 550 #endif
551
552 context->GetLua().ResetOrthancRestApi();
551 553
552 dicomServer.Stop(); 554 dicomServer.Stop();
553 LOG(WARNING) << " DICOM server has stopped"; 555 LOG(WARNING) << " DICOM server has stopped";
554 556
555 httpServer.Stop(); 557 httpServer.Stop();