MXS-1220: Add versioned URLs
Added versioning to URLs. This should allow somewhat safe modification to the API after it has been finished.
This commit is contained in:
@ -102,7 +102,12 @@ int Client::process(string url, string method, const char* upload_data, size_t *
|
||||
}
|
||||
|
||||
HttpRequest request(m_connection, url, method, json);
|
||||
HttpResponse reply = resource_handle_request(request);
|
||||
HttpResponse reply(MHD_HTTP_NOT_FOUND);
|
||||
|
||||
if (request.validate_api_version())
|
||||
{
|
||||
reply = resource_handle_request(request);
|
||||
}
|
||||
|
||||
string data;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user