Builds a basic api with rocket.rs, updates index.html

This commit is contained in:
2019-02-02 15:27:13 +01:00
parent ee3271f772
commit 46532eee9e
9 changed files with 118 additions and 30 deletions

17
web/Cargo.toml Normal file
View File

@@ -0,0 +1,17 @@
[package]
name = "web"
version = "0.1.0"
authors = ["artus40 <artus@landoftheunicorn.ovh>"]
edition = "2018"
[dependencies]
rocket = "0.4.0"
cookbook = { path = "../cookbook/" }
serde = "1.0"
serde_derive = "1.0"
[dependencies.rocket_contrib]
version = "0.4.0"
default-features = false
features = ["json", "diesel_sqlite_pool"]