Add deploy.sh endpoint and one-command installation flow

This commit is contained in:
thakares committed 2026-06-17 20:17:19 +05:30
1 parent 900f72a299
commit 1a9bf096f3
4 files changed
+102 -29

No files matched your search

+13
View File
@@ -120,3 +120,16 @@ pub async fn root_landing() -> Response {
Err(_) => (StatusCode::NOT_FOUND, "Not Found").into_response(),
}
}
pub async fn deploy_script() -> Response {
match tokio::fs::read("www/deploy.sh").await {
Ok(content) => (
StatusCode::OK,
[("content-type", "text/plain; charset=utf-8")],
content,
)
.into_response(),
Err(_) => (StatusCode::NOT_FOUND, "deploy.sh not found").into_response(),
}
}