summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_main.cc
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2015-09-08 17:41:26 +0200
committerYehuda Sadeh <yehuda@redhat.com>2016-02-12 01:12:43 +0100
commitdfadc9f705f413bf9fef75cb4168193bb5c6f4c2 (patch)
tree9425cf2c6ae54deae4007a0d8d578bf6cc86b337 /src/rgw/rgw_main.cc
parentrgw: fixes for RGWZoneGroupMap::decode_json (diff)
downloadceph-dfadc9f705f413bf9fef75cb4168193bb5c6f4c2.tar.xz
ceph-dfadc9f705f413bf9fef75cb4168193bb5c6f4c2.zip
rgw: add handler for /admin/realm/period
the handler returns the existing RGWOp_Period_Get/Post ops from rgw_rest_config.h Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/rgw/rgw_main.cc')
-rw-r--r--src/rgw/rgw_main.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rgw/rgw_main.cc b/src/rgw/rgw_main.cc
index 20d40e2799c..df3af8a8c25 100644
--- a/src/rgw/rgw_main.cc
+++ b/src/rgw/rgw_main.cc
@@ -52,6 +52,7 @@
#include "rgw_replica_log.h"
#include "rgw_rest_replica_log.h"
#include "rgw_rest_config.h"
+#include "rgw_rest_realm.h"
#include "rgw_swift_auth.h"
#include "rgw_swift.h"
#include "rgw_log.h"
@@ -1178,6 +1179,7 @@ int main(int argc, const char **argv)
admin_resource->register_resource("opstate", new RGWRESTMgr_Opstate);
admin_resource->register_resource("replica_log", new RGWRESTMgr_ReplicaLog);
admin_resource->register_resource("config", new RGWRESTMgr_Config);
+ admin_resource->register_resource("realm", new RGWRESTMgr_Realm);
rest.register_resource(g_conf->rgw_admin_entry, admin_resource);
}