mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
exclusion endpoints added
This commit is contained in:
@@ -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!"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user