30 lines
700 B
Rust
30 lines
700 B
Rust
/// Router modules loader
|
|
//
|
|
// Copyright 2021, Jesús Pérez Lorenzo
|
|
//
|
|
// use crate::errors::AppError;
|
|
// use actix_web::HttpResponse;
|
|
/// Main routes
|
|
// pub(super) mod base;
|
|
pub(super) mod main_gets;
|
|
// pub(super) mod main_posts;
|
|
// pub(super) mod adm_gets;
|
|
// pub(super) mod adm_posts;
|
|
// // pub(super) mod principal;
|
|
// /// Auth routes login, tokens, etc
|
|
// pub(super) mod gql;
|
|
// // pub(super) mod auth;
|
|
// pub(super) mod files;
|
|
// pub(super) mod utils;
|
|
// pub(super) mod reqtsksrvcs;
|
|
/*
|
|
fn convert<T, E>(res: Result<T, E>) -> Result<HttpResponse, AppError>
|
|
where
|
|
T: serde::Serialize,
|
|
AppError: From<E>,
|
|
{
|
|
res.map(|d| HttpResponse::Ok().json(d))
|
|
.map_err(Into::into)
|
|
}
|
|
|
|
*/ |