text: #  Project dangling-journal is developed by "Fahad Ahammed" on 11/12/19, 5:36 PM.
  # 
  #  Last modified at 11/12/19, 5:34 PM.
  # 
  #  Github: fahadahammed
  #  Email: obak.krondon@gmail.com
  # 
  #  Copyright (c) 2019. All rights reserved.
  
  
  from flask import request, render_template, url_for
  from flask import redirect, session, jsonify
  
  from DanglingJournal import app
  
  
  @app.route("/", methods=["GET"])
  def home_api():
      if request.method == "GET":
          return {
              "application_name": app.config["APPLICATION_NAME"],
              "version": app.config["DANGLINGJOURNAL_VERSION"],
              "branch": "master"
          }
  
  
  @app.route("/home", methods=["GET"])
  def home():
      if request.method == "GET":
          return render_template(template_name_or_list="home.html")