added more functionality
This commit is contained in:
parent
94904481a6
commit
cb31082580
@ -4,6 +4,7 @@ version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
rusqlite = "0.28.0"
|
||||
|
||||
[dependencies.rocket]
|
||||
version = "0.5.0-rc.2"
|
||||
|
@ -7,7 +7,6 @@ fn test() -> String {
|
||||
format!("Hello world")
|
||||
}
|
||||
|
||||
|
||||
#[derive(Deserialize)]
|
||||
#[serde(crate = "rocket::serde")]
|
||||
struct PostTest<'r> {
|
||||
@ -34,7 +33,6 @@ fn post_test(test: Json<PostTest<'_>>) {
|
||||
test.accuracy,
|
||||
test.user_id
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
#[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