diff --git a/backend/endpoints/config.py b/backend/endpoints/config.py index 29001f169..9a659fdcd 100644 --- a/backend/endpoints/config.py +++ b/backend/endpoints/config.py @@ -40,3 +40,22 @@ async def delete_platform_binding(request: Request) -> MessageResponse: cm.remove_binding(fs_slug) return {"msg": f"{fs_slug} bind removed successfully!"} + + +@protected_route(router.post, "/config/exclude", ["platforms.write"]) +async def add_exclusion(request: Request) -> MessageResponse: + """Add platform binding to the configuration""" + + data = await request.json() + + return {"msg": f"Exclusion added successfully!"} + + +@protected_route(router.delete, "/config/exclude", ["platforms.write"]) +async def delete_exclusion(request: Request) -> MessageResponse: + """Delete platform binding from the configuration""" + + data = await request.json() + + return {"msg": f"Exclusion removed successfully!"} +