routes.py 641 B

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