-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christina Sørensen <[email protected]>
- Loading branch information
Showing
4 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ | |
// | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
pub mod v1; | ||
pub mod routes; | ||
|
||
mod v1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// SPDX-FileCopyrightText: 2024 Christina Sørensen | ||
// SPDX-FileContributor: Christina Sørensen | ||
// | ||
// SPDX-License-Identifier: AGPL-3.0-only | ||
|
||
use axum::{extract::Extension, routing::get, Router}; | ||
|
||
use super::v1::routes::get_routes as get_v1_routes; | ||
|
||
pub fn get_routes() -> Router { | ||
Router::new().nest("/v1", get_v1_routes()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters