wip: get all posts route working state
This commit is contained in:
@ -46,11 +46,11 @@ async fn main() {
|
||||
// build our application with some routes
|
||||
let app = Router::new()
|
||||
.nest("/", routes::root::RootRoute::routes())
|
||||
.nest("/posts", routes::posts::PostsRoute::routes(&app_state))
|
||||
.nest(
|
||||
"/comments",
|
||||
routes::comments::CommentsRoute::routes(&app_state),
|
||||
);
|
||||
.nest("/posts", routes::posts::PostsRoute::routes(&app_state));
|
||||
// .nest(
|
||||
// "/comments",
|
||||
// routes::comments::CommentsRoute::routes(&app_state),
|
||||
// );
|
||||
|
||||
// run it with hyper
|
||||
let listener = TcpListener::bind("0.0.0.0:3000").await.unwrap();
|
||||
|
Reference in New Issue
Block a user