from flask import Flask, request from app import create_app from scheduler.schedule_text import schedule_text APP = create_app() @APP.route("/") def index(): return "crunk-scheduler online!" @APP.route("/schedule", methods=["POST"]) def schedule_post(): return schedule_text(request) if __name__ == "__main__": APP.run()