diff OrthancServer/OrthancRestApi.cpp @ 446:b7ef1a7d857e

/tools/now
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 17 May 2013 17:39:27 +0200
parents be93b666ed79
children 005aaeb63414
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi.cpp	Fri May 17 17:32:16 2013 +0200
+++ b/OrthancServer/OrthancRestApi.cpp	Fri May 17 17:39:27 2013 +0200
@@ -370,6 +370,13 @@
     call.GetOutput().AnswerBuffer(result, "text/plain");
   }
 
+  static void GetNowIsoString(RestApi::GetCall& call)
+  {
+    call.GetOutput().AnswerBuffer(Toolbox::GetNowIsoString(), "text/plain");
+  }
+
+
+
 
 
 
@@ -1678,5 +1685,6 @@
 
     Register("/tools/generate-uid", GenerateUid);
     Register("/tools/execute-script", ExecuteScript);
+    Register("/tools/now", GetNowIsoString);
   }
 }