Added config file for db #9
@@ -1,4 +1,4 @@
|
||||
use axum::{Json, extract::Extension, http::StatusCode};
|
||||
use axum::{Extension, Json, http::StatusCode};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
|
@@ -18,13 +18,13 @@ async fn main() {
|
||||
|
||||
// build our application with a route
|
||||
let app = Router::new()
|
||||
.layer(axum::Extension(pool))
|
||||
.route(callers::endpoints::DBTEST, get(callers::common::db_ping))
|
||||
.route(callers::endpoints::ROOT, get(callers::common::root))
|
||||
.route(
|
||||
callers::endpoints::REGISTER,
|
||||
post(callers::register::register_user),
|
||||
);
|
||||
)
|
||||
.layer(axum::Extension(pool));
|
||||
|
||||
// run our app with hyper, listening globally on port 3000
|
||||
let url = config::get_full();
|
||||
|
Reference in New Issue
Block a user