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 Flask, request
import os
app = Flask(__name__)
FLAG = os.getenv("FLAG")
@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 FLAG, 200