31 lines
583 B
Python
31 lines
583 B
Python
from flask import Flask, render_template, request, Response
|
|
from flask_api import status
|
|
import sys
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
# main smpark.in stuff
|
|
@app.route('/', methods=["GET"])
|
|
def home():
|
|
return render_template('home.html')
|
|
|
|
|
|
@app.route('/welcome', methods=["GET"])
|
|
def welcome():
|
|
return render_template('welcome.html')
|
|
|
|
|
|
@app.route('/privacy', methods=["GET"])
|
|
def privacy():
|
|
return render_template('privacy.html')
|
|
|
|
|
|
@app.errorhandler(404)
|
|
def fourohfour():
|
|
return render_template('404.html')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app.run(host='0.0.0.0', port=5000)
|