# -*- encoding: utf-8 -*- """ Python Aplication Template Licence: GPLv3 """ from flask import url_for, redirect, render_template, flash, g, session from app import app @app.route('/') def index(): return app.send_static_file('index.html') @app.route('/api/addpost',methods=['POST']) def addpost(): return 'Post Added' @app.route('/api/listposts') def listposts(): return 'Post Added' # ====================