15 lines
401 B
Python
15 lines
401 B
Python
|
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)
|