(refactor) AppState to state mod

This commit is contained in:
Rorik Star Platinum 2025-11-05 00:47:34 +03:00
parent 8a03bdee96
commit 5b3c2d4ec7
6 changed files with 92 additions and 14 deletions

View file

@ -7,7 +7,7 @@
pub mod handlers; // Объявляем подмодуль handlers
use axum::{routing::get, Router};
use crate::AppState;
use crate::state::AppState;
/// Создаёт и возвращает Router со всеми сконфигурированными роутами
/// Функция принимает AppState и передаёт его всем handlers'ам