<filename>src/app.py
from flask import Flask
from flask import jsonify
from flask import render_template
from flask import abort
from flask import request


import users
import auth

app = Flask(__name__)


@app.route("/users/<string:user>")
def get_user(user):
    return jsonify(users.get_user(user))


@app.route("/auth/login",  methods=['POST'])
def login():
    data = request.get_json()
    username = data["username"]
    password = data["password"]
    return jsonify(auth.login(username, password))


@app.route("/")
def home():
    return render_template("index.html")


if __name__ == "__main__":
    app.run(debug=True)

<filename>src/app.py
from flask import Flask
from flask import jsonify
from flask import render_template
from flask import abort
from flask import request


import users
import auth

app = Flask(__name__)


@app.route("/users/<string:user>")
def get_user(user):
    return jsonify(users.get_user(user))


@app.route("/auth/login",  methods=['POST'])
def login():
    data = request.get_json()
    username = data["username"]
    password = data["password"]
    return jsonify(auth.login(username, password))


@app.route("/")
def home():
    return render_template("index.html")


if __name__ == "__main__":
    app.run(debug=True)
