running so far
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use super::content_loader::{add_component, read_file};
|
||||
use super::content_loader::read_file;
|
||||
use actix_web::HttpResponse;
|
||||
|
||||
pub async fn reader() -> HttpResponse {
|
||||
|
||||
@@ -2,6 +2,10 @@ use super::path::Path;
|
||||
use actix_web::web;
|
||||
mod create;
|
||||
|
||||
/// curl --header "Content-Type: application/json" \
|
||||
/// --data '{"name":"Mike","email": "email@local.local", "password":"secret"}' \
|
||||
/// http://localhost:8001/api/v1/user/create -v
|
||||
///
|
||||
pub fn user_factory(app: &mut web::ServiceConfig) {
|
||||
let base_path: Path = Path {
|
||||
prefix: String::from("/user"),
|
||||
|
||||
Reference in New Issue
Block a user