progress-pile/dpts-server/src/main.rs

22 lines
458 B
Rust
Raw Normal View History

2025-05-06 14:44:57 +09:00
use async_graphql::{http::{playground_source, GraphQLPlaygroundConfig}, *};
use async_graphql_axum::GraphQL;
use dpts_core::graphql::{
Mutation,
Query,
};
use dpts_server::{build_app, Args};
use axum::{response::{Html, IntoResponse}, routing::get, Router};
2025-05-04 11:10:14 +09:00
use clap::Parser;
2025-05-06 14:44:57 +09:00
#[tokio::main]
async fn main() {
axum::serve(
tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap(),
crate::build_app()
).await.unwrap()
2025-04-27 08:36:57 +09:00
}
2025-05-06 14:44:57 +09:00