Skip to content

Commit

Permalink
Organize files
Browse files Browse the repository at this point in the history
  • Loading branch information
theodore-s-beers committed Jun 12, 2022
1 parent e8644d0 commit 277f989
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ pub fn pandoc(path: &Path, title: &str) -> Result<String, anyhow::Error> {
"-M",
"dir=rtl",
"-H",
"head.html",
"static/head.html",
"-A",
"script.html",
"static/script.html",
])
.output()?;

Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ async fn hello() -> impl Responder {

#[get("/robots.txt")]
async fn robots() -> actix_web::Result<NamedFile> {
let path = Path::new("robots.txt");
let path = Path::new("static/robots.txt");
Ok(NamedFile::open(path)?)
}

#[get("/styles.css")]
async fn css() -> actix_web::Result<NamedFile> {
let path = Path::new("styles.css");
let path = Path::new("static/styles.css");
Ok(NamedFile::open(path)?)
}

#[get("/pretty.js")]
async fn js() -> actix_web::Result<NamedFile> {
let path = Path::new("pretty.js");
let path = Path::new("static/pretty.js");
Ok(NamedFile::open(path)?)
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 277f989

Please sign in to comment.