mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
Rename to axum (#28)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
//! --example websocket
|
||||
//! ```
|
||||
|
||||
use awebframework::{
|
||||
use axum::{
|
||||
prelude::*,
|
||||
routing::nest,
|
||||
service::ServiceExt,
|
||||
@@ -29,7 +29,7 @@ async fn main() {
|
||||
// build our application with some routes
|
||||
let app = nest(
|
||||
"/",
|
||||
awebframework::service::get(
|
||||
axum::service::get(
|
||||
ServeDir::new("examples/websocket")
|
||||
.append_index_html_on_directories(true)
|
||||
.handle_error(|error: std::io::Error| {
|
||||
|
||||
Reference in New Issue
Block a user