chore: front-end
TS Lint / ESLint (push) Successful in 43s
Python Lint CI / ruff-format-check (push) Successful in 53s
Python Lint CI / ruff (push) Successful in 59s
Python Lint CI / ty (push) Successful in 59s
TS Lint / Oxlint (push) Successful in 1m57s
TS Lint / TypeScript (push) Successful in 2m17s
TS Lint / ESLint (push) Successful in 43s
Python Lint CI / ruff-format-check (push) Successful in 53s
Python Lint CI / ruff (push) Successful in 59s
Python Lint CI / ty (push) Successful in 59s
TS Lint / Oxlint (push) Successful in 1m57s
TS Lint / TypeScript (push) Successful in 2m17s
This commit is contained in:
+6
-3
@@ -17,13 +17,16 @@ class Server(gunicorn.app.base.BaseApplication):
|
||||
self.debug = params.debug
|
||||
self.workers = params.workers
|
||||
self.timeout = params.timeout
|
||||
self.app = flask.Flask(PKG_NAME)
|
||||
self.app = flask.Flask(
|
||||
PKG_NAME, static_folder="dist/assets", template_folder="dist"
|
||||
)
|
||||
self._index_content: str | None = None
|
||||
super().__init__()
|
||||
|
||||
def register_routes(self) -> typing.Self:
|
||||
@self.app.route("/")
|
||||
def hello_world() -> str:
|
||||
return "<p>Hello, World!</p>"
|
||||
def index() -> str:
|
||||
return flask.render_template("index.html")
|
||||
|
||||
return self
|
||||
|
||||
|
||||
Reference in New Issue
Block a user