From 6b293c0f2e560478a413fbe336831d38b9650d7e Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 30 May 2022 14:32:41 +0800 Subject: [PATCH] chore: rename src/static to src/assets --- src/{static => assets}/index.css | 0 src/{static => assets}/index.html | 0 src/{static => assets}/index.js | 0 src/server.rs | 6 +++--- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/{static => assets}/index.css (100%) rename src/{static => assets}/index.html (100%) rename src/{static => assets}/index.js (100%) diff --git a/src/static/index.css b/src/assets/index.css similarity index 100% rename from src/static/index.css rename to src/assets/index.css diff --git a/src/static/index.html b/src/assets/index.html similarity index 100% rename from src/static/index.html rename to src/assets/index.html diff --git a/src/static/index.js b/src/assets/index.js similarity index 100% rename from src/static/index.js rename to src/assets/index.js diff --git a/src/server.rs b/src/server.rs index 5c2c909..28dec09 100644 --- a/src/server.rs +++ b/src/server.rs @@ -37,9 +37,9 @@ macro_rules! status_code { }; } -const INDEX_HTML: &str = include_str!("static/index.html"); -const INDEX_CSS: &str = include_str!("static/index.css"); -const INDEX_JS: &str = include_str!("static/index.js"); +const INDEX_HTML: &str = include_str!("assets/index.html"); +const INDEX_CSS: &str = include_str!("assets/index.css"); +const INDEX_JS: &str = include_str!("assets/index.js"); const BUF_SIZE: usize = 1024 * 16; pub async fn serve(args: Args) -> BoxResult<()> {