Rename to axum (#28)

This commit is contained in:
David Pedersen
2021-07-09 21:36:14 +02:00
committed by GitHub
parent 3cd4a1d6a6
commit 5a5710d290
27 changed files with 131 additions and 131 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
use awebframework::{prelude::*, service::ServiceExt};
use axum::{prelude::*, service::ServiceExt};
use http::StatusCode;
use std::net::SocketAddr;
use tower_http::{services::ServeDir, trace::TraceLayer};
@@ -7,9 +7,9 @@ use tower_http::{services::ServeDir, trace::TraceLayer};
async fn main() {
tracing_subscriber::fmt::init();
let app = awebframework::routing::nest(
let app = axum::routing::nest(
"/static",
awebframework::service::get(ServeDir::new(".").handle_error(|error: std::io::Error| {
axum::service::get(ServeDir::new(".").handle_error(|error: std::io::Error| {
(
StatusCode::INTERNAL_SERVER_ERROR,
format!("Unhandled interal error: {}", error),