Add examples

This commit is contained in:
2026-09-16 21:58:31 +03:00
commit 8ee59bdd9b
21 changed files with 254 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
from flask import request
import flask
app = flask.Flask(__name__)
@app.route("/")
def index():
return "Send POST request to /flag to solve this!", 200
@app.route("/flag", methods=["GET", "POST"])
def flag():
if request.method == "GET":
return "Wrong method!", 400
else:
return open("./flag", "r", encoding="utf-8").read(), 200