comparison OrthancServer/OrthancRestApi/OrthancRestChanges.cpp @ 2905:ae20fccdd867

refactoring mime types
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Oct 2018 11:55:23 +0100
parents 7133ad478eea
children 9d277f8ad698
comparison
equal deleted inserted replaced
2904:0dd54ee073db 2905:ae20fccdd867
96 96
97 97
98 static void DeleteChanges(RestApiDeleteCall& call) 98 static void DeleteChanges(RestApiDeleteCall& call)
99 { 99 {
100 OrthancRestApi::GetIndex(call).DeleteChanges(); 100 OrthancRestApi::GetIndex(call).DeleteChanges();
101 call.GetOutput().AnswerBuffer("", "text/plain"); 101 call.GetOutput().AnswerBuffer("", MIME_PLAIN_TEXT);
102 } 102 }
103 103
104 104
105 // Exports API -------------------------------------------------------------- 105 // Exports API --------------------------------------------------------------
106 106
128 128
129 129
130 static void DeleteExports(RestApiDeleteCall& call) 130 static void DeleteExports(RestApiDeleteCall& call)
131 { 131 {
132 OrthancRestApi::GetIndex(call).DeleteExportedResources(); 132 OrthancRestApi::GetIndex(call).DeleteExportedResources();
133 call.GetOutput().AnswerBuffer("", "text/plain"); 133 call.GetOutput().AnswerBuffer("", MIME_PLAIN_TEXT);
134 } 134 }
135 135
136 136
137 void OrthancRestApi::RegisterChanges() 137 void OrthancRestApi::RegisterChanges()
138 { 138 {