2023-12-30 05:08:05 +01:00
|
|
|
pub mod model;
|
2024-03-14 05:27:08 +01:00
|
|
|
pub mod activitystream;
|
2023-12-30 05:08:05 +01:00
|
|
|
|
2024-02-09 17:07:55 +01:00
|
|
|
use axum::{
|
|
|
|
routing::get,
|
|
|
|
Router,
|
|
|
|
};
|
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
async fn main() {
|
|
|
|
// build our application with a single route
|
|
|
|
let app = Router::new().route("/", get(|| async { "Hello, World!" }));
|
|
|
|
|
|
|
|
// run our app with hyper, listening globally on port 3000
|
|
|
|
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
|
|
|
|
|
|
|
|
axum::serve(listener, app)
|
|
|
|
.await
|
|
|
|
.unwrap();
|
2023-12-30 05:08:05 +01:00
|
|
|
}
|