Rename to awebframework (#13)

This commit is contained in:
David Pedersen
2021-06-13 11:22:02 +02:00
committed by GitHub
parent 27ebb3db7a
commit 1002685a20
20 changed files with 137 additions and 138 deletions
+7 -7
View File
@@ -9,18 +9,18 @@
//! --example websocket
//! ```
use awebframework::{
prelude::*,
routing::nest,
service::ServiceExt,
ws::{ws, Message, WebSocket},
};
use http::StatusCode;
use std::net::SocketAddr;
use tower_http::{
services::ServeDir,
trace::{DefaultMakeSpan, TraceLayer},
};
use tower_web::{
prelude::*,
routing::nest,
service::ServiceExt,
ws::{ws, Message, WebSocket},
};
#[tokio::main]
async fn main() {
@@ -29,7 +29,7 @@ async fn main() {
// build our application with some routes
let app = nest(
"/",
tower_web::service::get(
awebframework::service::get(
ServeDir::new("examples/websocket")
.append_index_html_on_directories(true)
.handle_error(|error: std::io::Error| {