personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(home): add favicon route and serve favicon.ico; include logo image in README

+11 -1
+2
README.md
··· 1 + <img src="logo.png" alt="Sunstone Logo" width="300"> 2 + 1 3 # Sunstone 2 4 Navigate Work Intelligently 3 5
+9 -1
dream/views/home.py
··· 11 11 redirect, 12 12 render_template, 13 13 request, 14 + send_from_directory, 14 15 session, 15 16 url_for, 16 17 ) ··· 29 30 30 31 @bp.before_app_request 31 32 def require_login() -> Any: 32 - if request.endpoint in {"review.login", "review.static", "review.stats_data"}: 33 + if request.endpoint in {"review.login", "review.static", "review.stats_data", "review.favicon"}: 33 34 return None 34 35 if not session.get("logged_in"): 35 36 return redirect(url_for("review.login")) ··· 50 51 def logout() -> Any: 51 52 session.pop("logged_in", None) 52 53 return redirect(url_for("review.login")) 54 + 55 + 56 + @bp.route("/favicon.ico") 57 + def favicon() -> Any: 58 + """Serve the favicon from the project root.""" 59 + project_root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) 60 + return send_from_directory(project_root, "favicon.ico", mimetype="image/x-icon") 53 61 54 62 55 63 @bp.route("/")
favicon.ico

This is a binary file and will not be displayed.

logo.png

This is a binary file and will not be displayed.