18 lines
375 B
Python
18 lines
375 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""Not enough logging"""
|
|
|
|
from flask import Flask, request
|
|
|
|
app: Flask = Flask(__name__)
|
|
|
|
|
|
@app.route("/action", methods=["POST"])
|
|
def action():
|
|
action_type: str = request.form["action"]
|
|
# No logging of actions performed
|
|
return f"Action {action_type} performed!"
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run(debug=True)
|