added more functionality
This commit is contained in:
parent
94904481a6
commit
cb31082580
@ -4,6 +4,7 @@ version = "0.1.0"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
rusqlite = "0.28.0"
|
||||||
|
|
||||||
[dependencies.rocket]
|
[dependencies.rocket]
|
||||||
version = "0.5.0-rc.2"
|
version = "0.5.0-rc.2"
|
||||||
|
@ -7,7 +7,6 @@ fn test() -> String {
|
|||||||
format!("Hello world")
|
format!("Hello world")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
#[serde(crate = "rocket::serde")]
|
#[serde(crate = "rocket::serde")]
|
||||||
struct PostTest<'r> {
|
struct PostTest<'r> {
|
||||||
@ -34,7 +33,6 @@ fn post_test(test: Json<PostTest<'_>>) {
|
|||||||
test.accuracy,
|
test.accuracy,
|
||||||
test.user_id
|
test.user_id
|
||||||
)
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[launch]
|
#[launch]
|
||||||
|
1
src/sql.rs
Normal file
1
src/sql.rs
Normal file
@ -0,0 +1 @@
|
|||||||
|
use rusqlite::{params, Connection, Result};
|
Loading…
Reference in New Issue
Block a user