nightly analytics

This commit is contained in:
notplants
2023-04-27 14:16:42 +05:30
parent 4ee870f22b
commit 3ce0d088ec
6 changed files with 299 additions and 52 deletions

19
server.py Normal file
View File

@ -0,0 +1,19 @@
import os
from flask import Flask, request, render_template, jsonify
app = Flask(__name__, static_folder='public', template_folder='templates')
app.config['TEMPLATES_AUTO_RELOAD'] = True
@app.route('/')
def homepage():
return render_template('index.html')
@app.route('/test')
def testpage():
return "hi! its test"
# this line start the server with the 'run()' method
if __name__ == '__main__':
app.run()