refactor: refactor some crates with http_server

This commit is contained in:
appflowy
2022-02-07 14:40:45 +08:00
parent 680d130986
commit 084e9c5f6f
33 changed files with 3172 additions and 1477 deletions

View File

@ -1,6 +1,6 @@
use crate::FlowyError;
use backend_service::errors::{ErrorCode as ServerErrorCode, ServerError};
use error_code::ErrorCode;
use http_flowy::errors::{ErrorCode as ServerErrorCode, ServerError};
impl std::convert::From<ServerError> for FlowyError {
fn from(error: ServerError) -> Self {

View File

@ -16,10 +16,10 @@ mod serde;
pub use serde::*;
//
#[cfg(feature = "backend")]
mod backend;
#[cfg(feature = "backend")]
pub use backend::*;
#[cfg(feature = "http_server")]
mod http_server;
#[cfg(feature = "http_server")]
pub use http_server::*;
#[cfg(feature = "db")]
mod database;