mirror of
https://github.com/actix/examples
synced 2024-11-23 14:31:07 +01:00
rename nested routing binary
This commit is contained in:
parent
cc3d356209
commit
74ee6ae707
20
Cargo.lock
generated
20
Cargo.lock
generated
@ -912,16 +912,6 @@ dependencies = [
|
|||||||
"serde_json",
|
"serde_json",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "async_ex2"
|
|
||||||
version = "1.0.0"
|
|
||||||
dependencies = [
|
|
||||||
"actix-web",
|
|
||||||
"env_logger",
|
|
||||||
"serde 1.0.136",
|
|
||||||
"serde_json",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "async_pg"
|
name = "async_pg"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
@ -3418,6 +3408,16 @@ dependencies = [
|
|||||||
"tempfile",
|
"tempfile",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "nested-routing"
|
||||||
|
version = "1.0.0"
|
||||||
|
dependencies = [
|
||||||
|
"actix-web",
|
||||||
|
"env_logger",
|
||||||
|
"serde 1.0.136",
|
||||||
|
"serde_json",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "net2"
|
name = "net2"
|
||||||
version = "0.2.37"
|
version = "0.2.37"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "async_ex2"
|
name = "nested-routing"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use actix_web::{middleware, App, HttpServer};
|
use actix_web::{middleware, App, HttpServer};
|
||||||
|
|
||||||
use async_ex2::appconfig::config_app;
|
use nested_routing::app_config::config_app;
|
||||||
|
|
||||||
#[actix_web::main]
|
#[actix_web::main]
|
||||||
async fn main() -> std::io::Result<()> {
|
async fn main() -> std::io::Result<()> {
|
||||||
|
@ -24,7 +24,7 @@ pub async fn remove_product(_id: web::Path<String>) -> Result<HttpResponse, Erro
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use crate::appconfig::config_app;
|
use crate::app_config::config_app;
|
||||||
use actix_web::dev::Service;
|
use actix_web::dev::Service;
|
||||||
use actix_web::{
|
use actix_web::{
|
||||||
http::{header, StatusCode},
|
http::{header, StatusCode},
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
pub mod appconfig;
|
pub mod app_config;
|
||||||
pub mod common;
|
pub mod common;
|
||||||
pub mod handlers;
|
pub mod handlers;
|
||||||
|
Loading…
Reference in New Issue
Block a user