Implemeted Display trait for Category enum

This commit is contained in:
2026-04-22 18:29:56 +02:00
parent 94aea7ca27
commit a9e31e2fdf
2 changed files with 34 additions and 4 deletions

View File

@@ -1,10 +1,17 @@
mod handlers;
mod models;
mod router;
use axum::{Router, routing};
use dotenv::dotenv;
use models::*;
use router::create_router;
use serde::{Deserialize, Serialize};
use sqlx::{PgPool, postgres::PgPoolOptions};
pub struct AppState {
db: PgPool,
}
#[tokio::main]
async fn main() {
dotenv().ok();