This adds the API to urchin, all API related files will be placed under the api directory. The API server uses a context object to access global parameters, typically the different servers themselves. After this patch the api-doc will be available, though empty under: http://localhost:10000/api-doc Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
21 lines
259 B
C++
21 lines
259 B
C++
/*
|
|
* Copyright 2015 Cloudius Systems
|
|
*/
|
|
|
|
#ifndef API_API_HH_
|
|
#define API_API_HH_
|
|
|
|
#include "http/httpd.hh"
|
|
|
|
namespace api {
|
|
|
|
struct http_context {
|
|
http_server_control http_server;
|
|
};
|
|
|
|
future<> set_server(http_context& ctx);
|
|
|
|
}
|
|
|
|
#endif /* API_API_HH_ */
|