Changed router visibility to pub

This commit is contained in:
Martin Berg Alstad
2024-07-06 13:27:24 +02:00
parent 284ee73ffd
commit f40c87aa8e
4 changed files with 5 additions and 5 deletions

View File

@ -20,12 +20,12 @@
#[macro_export]
macro_rules! router {
($body:expr) => {
pub(crate) fn router() -> axum::Router {
pub fn router() -> axum::Router {
$body
}
};
($body:expr; $state:ty) => {
pub(crate) fn router() -> axum::Router<$state> {
pub fn router() -> axum::Router<$state> {
$body
}
};