Advertisement
Andrewssss

__init__.py

Dec 6th, 2023 (edited)
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | Source Code | 0 0
  1. from flask import Flask
  2. import sys
  3. from pprint import pprint
  4. sys.path.append("/var/www/FLASKAPPS")
  5. from Server import Server
  6.  
  7. app = Flask(__name__)
  8. server = Server(app)
  9.  
  10. @app.route("/api/status")
  11. def statusAction():
  12.     return server.status()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement