diff --git a/rxsmserver/__init__.py b/rxsmserver/__init__.py index 65e1134..56c79f0 100644 --- a/rxsmserver/__init__.py +++ b/rxsmserver/__init__.py @@ -1,5 +1,5 @@ # Created 2019-09-10 by NGnius -from flask import Flask, Blueprint, jsonify, request, send_file +from flask import Flask, Blueprint, jsonify, request, send_file, render_template import sqlite3 as dblib from hashlib import sha512 from os import getcwd @@ -19,6 +19,10 @@ def get_or_create_connection(): database_connections[thread_id] = dblib.connect(database_path) return database_connections[thread_id] +@app.route('/', methods=['GET']) +def index(): + return render_template('index.html') + @app.route('/release', methods=['POST']) def create_or_modify_release(): try: diff --git a/rxsmserver/templates/index.html b/rxsmserver/templates/index.html new file mode 100644 index 0000000..6ad7784 --- /dev/null +++ b/rxsmserver/templates/index.html @@ -0,0 +1,14 @@ + + + +
+ + +