mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
rename nested routing binary
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "async_ex2"
|
||||
name = "nested-routing"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
use actix_web::{middleware, App, HttpServer};
|
||||
|
||||
use async_ex2::appconfig::config_app;
|
||||
use nested_routing::app_config::config_app;
|
||||
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
|
@ -24,7 +24,7 @@ pub async fn remove_product(_id: web::Path<String>) -> Result<HttpResponse, Erro
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::appconfig::config_app;
|
||||
use crate::app_config::config_app;
|
||||
use actix_web::dev::Service;
|
||||
use actix_web::{
|
||||
http::{header, StatusCode},
|
||||
|
@ -1,3 +1,3 @@
|
||||
pub mod appconfig;
|
||||
pub mod app_config;
|
||||
pub mod common;
|
||||
pub mod handlers;
|
||||
|
Reference in New Issue
Block a user