diff --git a/overseer/apis/v1/__init__.py b/overseer/apis/v1/__init__.py index 7bb35b8..e456582 100644 --- a/overseer/apis/v1/__init__.py +++ b/overseer/apis/v1/__init__.py @@ -1,5 +1,5 @@ import overseer.apis.v1.base as base from overseer.apis.v1.base import api -api.add_resource(base.Suspicions, "/suspicions") -api.add_resource(base.Instances, "/instances") +api.add_resource(base.Suspicions, "/instances") +api.add_resource(base.Whitelist, "/whitelist") diff --git a/overseer/apis/v1/base.py b/overseer/apis/v1/base.py index f0c5de6..223db19 100644 --- a/overseer/apis/v1/base.py +++ b/overseer/apis/v1/base.py @@ -41,7 +41,7 @@ class Suspicions(Resource): return {"instances": sus_instances},200 -class Instances(Resource): +class Whitelist(Resource): get_parser = reqparse.RequestParser() get_parser.add_argument("Client-Agent", default="unknown:0:unknown", type=str, required=False, help="The client name and version.", location="headers") get_parser.add_argument("endorsements", required=False, default=1, type=int, help="Limit to this amount of endorsements of more", location="args")