Commit 952e79a4 authored by Pavel Vainerman's avatar Pavel Vainerman Committed by Pavel Vainerman

admin: fixed compile error

parent c7e62e6c
......@@ -1203,8 +1203,11 @@ int apiRequest( const string& args, UInterface& ui, const string& query )
if( q.rfind("/api/", 0) != 0 )
{
#ifndef DISABLE_REST_API
q = "/api/" + uniset::UHttp::UHTTP_API_VERSION;
#else
q = "/api/v01";
#endif
if( query[0] != '/' )
q += "/";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment