test db is working
All checks were successful
Rust Build / Check (pull_request) Successful in 1m15s
Rust Build / Test Suite (pull_request) Successful in 1m33s
Rust Build / Rustfmt (pull_request) Successful in 25s
Rust Build / Clippy (pull_request) Successful in 1m20s
Rust Build / build (pull_request) Successful in 3m20s
All checks were successful
Rust Build / Check (pull_request) Successful in 1m15s
Rust Build / Test Suite (pull_request) Successful in 1m33s
Rust Build / Rustfmt (pull_request) Successful in 25s
Rust Build / Clippy (pull_request) Successful in 1m20s
Rust Build / build (pull_request) Successful in 3m20s
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
use axum::{Json, extract::Extension, http::StatusCode};
|
use axum::{Extension, Json, http::StatusCode};
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
@@ -18,13 +18,13 @@ async fn main() {
|
|||||||
|
|
||||||
// build our application with a route
|
// build our application with a route
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
.layer(axum::Extension(pool))
|
|
||||||
.route(callers::endpoints::DBTEST, get(callers::common::db_ping))
|
.route(callers::endpoints::DBTEST, get(callers::common::db_ping))
|
||||||
.route(callers::endpoints::ROOT, get(callers::common::root))
|
.route(callers::endpoints::ROOT, get(callers::common::root))
|
||||||
.route(
|
.route(
|
||||||
callers::endpoints::REGISTER,
|
callers::endpoints::REGISTER,
|
||||||
post(callers::register::register_user),
|
post(callers::register::register_user),
|
||||||
);
|
)
|
||||||
|
.layer(axum::Extension(pool));
|
||||||
|
|
||||||
// run our app with hyper, listening globally on port 3000
|
// run our app with hyper, listening globally on port 3000
|
||||||
let url = config::get_full();
|
let url = config::get_full();
|
||||||
|
Reference in New Issue
Block a user