back to classics

pull/3/head
db0 2023-06-21 19:44:33 +02:00
parent 7818c6cb65
commit 39c5e5c423
2 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -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")