@app.route("/category/<cat_id>/", methods=["GET", "PUT", "POST", "DELETE"])
def cat_work(cat_id):
    ret = ""
    if request.method == "PUT":
        ret = cat_new(request)

    if request.method == "POST":
        ret = cat_update(request, cat_id)

    if request.method == "GET":
        ret = cat_view(request, cat_id)

    if request.method == "DELETE":
        ret = cat_delete(request, cat_id)

    return ret
A decorator that's used to register a new hook handler.
dataset/ETHPy150Open gmcquillan/firetower/firetower/web/firetower_web.py/cat_work--crossover with--dataset/ETHPy150Open nickfrostatx/flask-hookserver/flask_hookserver.py/Hooks.hook