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 @@ + + + + + + + RXSM Update Server + + +

RXSM Update Server

+

This domain is designed for robots, not you, you silly dinosaur!

+
Read about the RXSM update API.
+ + diff --git a/scripts/run.sh b/scripts/run.sh index 7009b3e..a5e9701 100755 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -1,3 +1,5 @@ #!/bin/sh -python3 rxsmserver/__init__.py +cd rxsmserver +python3 __init__.py +cd ..