niming_backend/app.py

15 lines
401 B
Python
Raw Normal View History

2024-11-07 02:19:53 +08:00
from flask import Flask, session, request, redirect
import os
from blueprints.article import article
from supaclient import supaClient
app = Flask(__name__)
app.config["SECRET_KEY"] = os.urandom(64)
app.shared_resource = supaClient()
# blueprints
app.register_blueprint(article, url_prefix = '/api/article')
# run
if __name__ == "__main__":
app.run(host = "0.0.0.0", port = 8000, debug = False)