mirror of
https://github.com/actix/actix-website
synced 2025-06-27 15:39:02 +02:00
moves individual examples to pub mods to force building and have less dead_code
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
// <resource>
|
||||
use actix_web::{http::Method, web, App, HttpRequest, HttpResponse};
|
||||
use actix_web::{web, App, HttpRequest, HttpResponse};
|
||||
|
||||
fn index(_req: HttpRequest) -> HttpResponse {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn main() {
|
||||
pub fn main() {
|
||||
App::new()
|
||||
.service(web::resource("/prefix").to(index))
|
||||
.service(
|
||||
|
Reference in New Issue
Block a user