aboutsummaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/repos.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/hydrilla/proxy/web_ui/repos.py')
-rw-r--r--src/hydrilla/proxy/web_ui/repos.py23
1 files changed, 9 insertions, 14 deletions
diff --git a/src/hydrilla/proxy/web_ui/repos.py b/src/hydrilla/proxy/web_ui/repos.py
index d20791c..0f55b2a 100644
--- a/src/hydrilla/proxy/web_ui/repos.py
+++ b/src/hydrilla/proxy/web_ui/repos.py
@@ -33,17 +33,12 @@ from __future__ import annotations
import typing as t
-from ...translations import smart_gettext as _
-from .. import state as st
-from .. import http_messages
-
-def respond(
- request: http_messages.RequestInfo,
- rest_of_path: t.Sequence[str],
- state: st.HaketiloState
-) -> http_messages.ProducedResponse:
- return http_messages.ProducedResponse(
- 404,
- [(b'Content-Type', b'text/plain; charset=utf-8')],
- _('api.repos_not_implemented').encode()
- )
+import flask
+
+
+bp = flask.Blueprint('repos', __package__)
+
+@bp.route('/repos')
+def repos() -> flask.Response:
+ html = flask.render_template('repos.html.jinja')
+ return flask.make_response(html, 200)