Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
Make trigger routes POST instead of GET (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
fm3 authored Feb 7, 2022
1 parent a663c4f commit 5e4b4c6
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions wkconnect/routes/triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,21 @@
triggers = Blueprint(__name__, url_prefix="/triggers")


@triggers.route("/checkInboxBlocking")
@triggers.route("/checkInboxBlocking", methods=["POST"])
@authorized(AccessRequest.administrate_datasets)
async def check_inbox_blocking(request: Request) -> response.HTTPResponse:
app = cast("Server", request.app)
await app.load_persisted_datasets()
return response.text("Ok")


@triggers.route("/newOrganizationFolder")
@triggers.route("/newOrganizationFolder", methods=["POST"])
@authorized(AccessRequest.administrate_datasets)
async def new_organization_folder(request: Request) -> response.HTTPResponse:
return response.text("Ok")


@triggers.route("/checkNewOrganizationFolder")
async def check_new_organization_folder(request: Request) -> response.HTTPResponse:
return response.text("Ok")


@triggers.route("/reload/<organization_name>/<dataset_name>")
@triggers.route("/reload/<organization_name>/<dataset_name>", methods=["POST"])
@authorized(AccessRequest.administrate_datasets)
async def reload_dataset(
request: Request, organization_name: str, dataset_name: str
Expand Down

0 comments on commit 5e4b4c6

Please sign in to comment.