2017-08-09 06:43:31 +00:00
|
|
|
# -*- 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'])
|
2017-08-09 06:48:47 +00:00
|
|
|
def addpost():
|
|
|
|
|
return 'Post Added'
|
2017-08-09 06:43:31 +00:00
|
|
|
|
2017-08-09 06:48:47 +00:00
|
|
|
@app.route('/api/listposts')
|
|
|
|
|
def listposts():
|
|
|
|
|
return 'Post Added'
|
2017-08-09 06:43:31 +00:00
|
|
|
|
|
|
|
|
# ====================
|