Skip to content
This repository has been archived by the owner on Feb 23, 2020. It is now read-only.

Commit

Permalink
Remove unused asset
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Kuche <[email protected]>
  • Loading branch information
Zitrone44 committed Mar 25, 2018
1 parent 7e6e802 commit 963dbe1
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zlnk"
version = "0.1.0"
version = "0.1.1"
authors = ["Jonas Kuche <[email protected]>"]

[dependencies]
Expand Down
1 change: 0 additions & 1 deletion assets/download.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
curl -s -O https://unpkg.com/[email protected]/dist/jquery.min.js
curl -s -O https://unpkg.com/[email protected]/dist/css/bootstrap.min.css
curl -s -O https://unpkg.com/[email protected]/dist/js/bootstrap.min.js
curl -s -O https://unpkg.com/[email protected]/svg/link-intact.svg
sha512sum -c sha512sums
1 change: 0 additions & 1 deletion assets/sha512sums
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
f8da8f95b6ed33542a88af19028e18ae3d9ce25350a06bfc3fbf433ed2b38fefa5e639cddfdac703fc6caa7f3313d974b92a3168276b3a016ceb28f27db0714a jquery.min.js
93bf1ed5f6d8b34f53413a86efd4a925d578c97abc757ea871f3f46f340745e4126c48219d2e8040713605b64a9ecf7ad986aa8102f5ea5ecf9228801d962f5d bootstrap.min.css
00d9069b9bd29ad0daa0503f341d67549cce28e888e1affd1a2a45b64a4c1bc460d81cfc4751857f991f2f4fb3d2572fd97fca651ba0c2b0255530209b182f22 bootstrap.min.js
90efcf7e3d8179996bb642de4fade46f2841602a5cbe00f2277f631eafc59bb64050af19cc79004ff80931929eca8eee8c825472787bf0e44b5aed480971bc17 link-intact.svg
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ static_file!("/zlnk.js", "../static/zlnk.js", ContentType::JavaScript, js);
static_file!("/assets/jquery.min.js", "../assets/jquery.min.js", ContentType::JavaScript, jquery);
static_file!("/assets/bootstrap.min.css", "../assets/bootstrap.min.css", ContentType::CSS, bootstrap_css);
static_file!("/assets/bootstrap.min.js", "../assets/bootstrap.min.js", ContentType::JavaScript, bootstrap_js);
static_file!("/assets/link-intact.svg", "../assets/link-intact.svg", ContentType::SVG, link_icon);

#[post("/shorten", data="<long_url>")]
fn shorten(long_url: String, env: State<Env>, db: State<DB>) -> Result<String, Failure> {
Expand Down Expand Up @@ -76,7 +75,7 @@ fn main() {
let env = env_loader::init();
let db = DB::open_default(&env.database_path).unwrap();
rocket::ignite()
.mount("/", routes![index, js, jquery, bootstrap_css, bootstrap_js, link_icon, shorten, longen])
.mount("/", routes![index, js, jquery, bootstrap_css, bootstrap_js, shorten, longen])
.catch(errors![not_found, bad_request]).manage(env).manage(db)
.launch();
}

0 comments on commit 963dbe1

Please sign in to comment.