23 lines
460 B
Rust
23 lines
460 B
Rust
use lib::axum::app::AppBuilder;
|
|
use tower_http::cors::CorsLayer;
|
|
|
|
use crate::routing::routes::*;
|
|
use crate::routing::routes::index::not_found;
|
|
|
|
mod expressions;
|
|
mod parsing;
|
|
mod routing;
|
|
mod config;
|
|
mod utils;
|
|
|
|
#[tokio::main]
|
|
async fn main() {
|
|
AppBuilder::new()
|
|
.routes(&[index::router(), simplify::router(), table::router()])
|
|
.fallback(not_found)
|
|
.cors(CorsLayer::permissive())
|
|
.serve()
|
|
.await
|
|
.unwrap();
|
|
}
|