Browse Source

chore: move src/assets out of src

pull/8/head
sigoden 3 years ago
parent
commit
1fe391f9d9
  1. 0
      assets/index.css
  2. 0
      assets/index.html
  3. 0
      assets/index.js
  4. 6
      src/server.rs

0
src/assets/index.css → assets/index.css

0
src/assets/index.html → assets/index.html

0
src/assets/index.js → assets/index.js

6
src/server.rs

@ -32,9 +32,9 @@ use tokio_util::io::{ReaderStream, StreamReader}; @@ -32,9 +32,9 @@ use tokio_util::io::{ReaderStream, StreamReader};
type Request = hyper::Request<Body>;
type Response = hyper::Response<Body>;
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 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;
macro_rules! status {

Loading…
Cancel
Save