2023-06-07 08:58:53 +02:00
|
|
|
#!/usr/bin/env python3
|
2023-06-08 10:54:36 +02:00
|
|
|
"""Creatr App"""
|
2023-06-13 08:11:29 +02:00
|
|
|
from flask import Flask, request
|
|
|
|
from demo.utils.checker import inbox_prechecker
|
2023-06-07 08:58:53 +02:00
|
|
|
|
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
|
|
@app.route('/')
|
2023-06-08 10:54:36 +02:00
|
|
|
def index():
|
|
|
|
"""Show index page"""
|
2023-06-07 08:58:53 +02:00
|
|
|
return "Hello Fediverse!"
|
2023-06-13 08:11:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
@app.route("/inbox", methods=["POST"])
|
|
|
|
def inbox():
|
|
|
|
"""Process inbox request"""
|
|
|
|
is_verify = inbox_prechecker(request)
|
|
|
|
if is_verify:
|
|
|
|
return "STUB"
|
|
|
|
return "STUB"
|