from flask import Flask, url_for app = Flask("Kotely") @app.route('/') def api_root(): return 'Welcome' @app.route('/articles') def api_articles(): return 'List of ' + url_for('api_articles') @app.route('/articles/') def api_article(articleid): return 'You are reading ' + articleid if __name__ == '__main__': app.run(port="8809")