routes.py 645 B

123456789101112131415161718192021222324252627282930313233343536
  1. import os
  2. import flask
  3. import pystache
  4. import lc.model as m
  5. LOADER = pystache.loader.Loader(
  6. extension='mustache',
  7. search_dirs=['templates'],
  8. )
  9. app = flask.Flask(__name__)
  10. @app.route('/')
  11. def index():
  12. pass
  13. @app.route('/u', methods=['POST'])
  14. def create_user(user):
  15. pass
  16. @app.route('/u/<string:user>', methods=['GET', 'POST'])
  17. def get_user(user):
  18. pass
  19. @app.route('/u/<string:user>/l', methods=['POST'])
  20. def create_link(user):
  21. pass
  22. @app.route('/u/<string:user>/l/<string:link>', methods=['GET', 'POST'])
  23. def link(user):
  24. pass
  25. @app.route('/u/<string:user>/t/<path:tag>')
  26. def get_tagged_links(user, tag):
  27. pass