mirror of https://github.com/fafhrd91/actix-web
chore: move imports back inside (?)
This commit is contained in:
parent
eca91697f2
commit
f367105c72
|
@ -204,15 +204,16 @@ method_macro!(Patch, patch);
|
||||||
///
|
///
|
||||||
/// ## Attributes:
|
/// ## Attributes:
|
||||||
///
|
///
|
||||||
/// - `"path"` - Raw literal string with path for which to register handler. Mandatory.
|
/// - `"/prefix"` - Raw literal string with path for which to register handler. Mandatory.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # use actix_web_codegen::scope;
|
/// # use actix_web_codegen::scope;
|
||||||
/// # use actix_web::{get, HttpResponse, Responder};
|
|
||||||
/// #[scope("/test")]
|
/// #[scope("/test")]
|
||||||
/// mod scope_module {
|
/// mod scope_module {
|
||||||
|
/// # use actix_web_codegen::get;
|
||||||
|
/// # use actix_web::{HttpResponse, Responder};
|
||||||
/// #[get("/test")]
|
/// #[get("/test")]
|
||||||
/// pub async fn test() -> impl Responder {
|
/// pub async fn test() -> impl Responder {
|
||||||
/// // this has path /test/test
|
/// // this has path /test/test
|
||||||
|
|
Loading…
Reference in New Issue