A Python content management system designed for kirsle.net featuring a blog, comments and photo albums. https://rophako.kirsle.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
519 B

  1. # -*- coding: utf-8 -*-
  2. # Legacy endpoint compatibility from kirsle.net.
  3. from flask import request, redirect
  4. from rophako import app
  5. @app.route("/+")
  6. def google_plus():
  7. return redirect("https://plus.google.com/+NoahPetherbridge/posts")
  8. @app.route("/blog.html")
  9. def legacy_blog():
  10. post_id = request.args.get("id", "")
  11. # All of this is TO-DO.
  12. # friendly_id = get friendly ID
  13. # return redirect(...)
  14. return "TO-DO"
  15. @app.route("/<page>.html")
  16. def legacy_url(page):
  17. return "/{}".format(page)