Move files around
This commit is contained in:
1 parent
3d8429f2f2
commit
ef2074f65b
8 files changed
+10
-7
No files matched your search
+1
-1
@@ -5,7 +5,7 @@ use axum::{Json, Router, extract::{Path, State}, response::{IntoResponse, Respon
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use tracing::instrument;
|
use tracing::instrument;
|
||||||
|
|
||||||
use crate::{app::AppState, app_error::AppError, auth_user::AuthUser, sync::Document};
|
use crate::{app::AppState, app_error::AppError, auth_user::AuthUser, repository::progress_sync::Document};
|
||||||
|
|
||||||
|
|
||||||
pub fn syncs_routes() -> Router<AppState> {
|
pub fn syncs_routes() -> Router<AppState> {
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ use std::{path::Path, sync::Arc};
|
|||||||
|
|
||||||
use axum::extract::FromRef;
|
use axum::extract::FromRef;
|
||||||
|
|
||||||
use crate::{config::Config, reader::Reader, sync::ProgressSync, users::Users, writer::Writer};
|
use crate::{config::Config, reader::Reader, repository::{progress_sync::ProgressSync, users::Users}, writer::Writer};
|
||||||
|
|
||||||
#[derive(Clone, FromRef)]
|
#[derive(Clone, FromRef)]
|
||||||
pub struct AppState {
|
pub struct AppState {
|
||||||
|
|||||||
+2
-1
@@ -1,7 +1,8 @@
|
|||||||
use axum::{Json, http::StatusCode, response::IntoResponse};
|
use axum::{Json, http::StatusCode, response::IntoResponse};
|
||||||
use thiserror::Error;
|
use thiserror::Error;
|
||||||
|
|
||||||
use crate::{sync::SyncError, users::UserError};
|
use crate::repository::{progress_sync::SyncError, users::UserError};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// The AppError represents the different error types from upstream kosync server
|
// The AppError represents the different error types from upstream kosync server
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
use axum::extract::{FromRef as _, FromRequestParts};
|
use axum::extract::{FromRef as _, FromRequestParts};
|
||||||
use secrecy::SecretString;
|
use secrecy::SecretString;
|
||||||
|
|
||||||
use crate::{app::AppState, app_error::AppError, users};
|
use crate::{app::AppState, app_error::AppError, repository::users};
|
||||||
|
|
||||||
pub struct AuthUser { pub username: String }
|
pub struct AuthUser { pub username: String }
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -1,7 +1,6 @@
|
|||||||
pub mod config;
|
pub mod config;
|
||||||
pub mod writer;
|
pub mod writer;
|
||||||
pub mod users;
|
pub mod repository;
|
||||||
pub mod sync;
|
|
||||||
pub mod reader;
|
pub mod reader;
|
||||||
pub mod api;
|
pub mod api;
|
||||||
pub mod app;
|
pub mod app;
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
pub mod progress_sync;
|
||||||
|
pub mod users;
|
||||||
@@ -157,7 +157,8 @@ mod tests {
|
|||||||
use secrecy::SecretString;
|
use secrecy::SecretString;
|
||||||
use tempfile::{TempDir, tempdir};
|
use tempfile::{TempDir, tempdir};
|
||||||
|
|
||||||
use crate::users::Users;
|
|
||||||
|
use crate::repository::users::Users;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
File renamed without changes.
Reference in new issue
Block a user