From 8dd0e52081f3e361bf96b44d65b6ab2999905bb2 Mon Sep 17 00:00:00 2001 From: Neslihan Date: Mon, 22 Feb 2021 17:14:26 +0300 Subject: [PATCH] Create 3 essential routes --- app/__init__.py | 5 +++++ app/routes.py | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 app/__init__.py create mode 100644 app/routes.py diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..82b47ea --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,5 @@ +from flask import Flask + +app = Flask(__name__) + +from app import routes \ No newline at end of file diff --git a/app/routes.py b/app/routes.py new file mode 100644 index 0000000..e6ec895 --- /dev/null +++ b/app/routes.py @@ -0,0 +1,16 @@ +from app import app + +@app.route('/') +@app.route('/index') +def index(): + return "Hello, World!" + + +@app.route('/login') +def index(): + return "Hello, World!" + + +@app.route('/admin') +def index(): + return "Hello, World!" \ No newline at end of file