Moved actions into separate sub-module.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s
This commit is contained in:
@@ -7,7 +7,8 @@ use axum::{
|
||||
};
|
||||
use clap::Parser;
|
||||
//use morethantext::{ActionType, ErrorType, MoreThanText};
|
||||
use morethantext::{MoreThanText, MsgAction, Query};
|
||||
//use morethantext::{MoreThanText, MsgAction, Query};
|
||||
use morethantext::MoreThanText;
|
||||
use std::{collections::HashMap, convert::Infallible};
|
||||
use tokio::{spawn, sync::mpsc::channel};
|
||||
use tower_cookies::{Cookie, CookieManagerLayer, Cookies};
|
||||
@@ -90,13 +91,15 @@ async fn mtt_conn(
|
||||
_body: String,
|
||||
) -> impl IntoResponse {
|
||||
let (tx, mut rx) = channel(1);
|
||||
/*
|
||||
let _action = match method {
|
||||
Method::GET => MsgAction::Query(Query::new()),
|
||||
//Method::GET => MsgAction::Query(Query::new()),
|
||||
//Method::GET => ActionType::Get,
|
||||
//Method::POST => ActionType::Add,
|
||||
//Method::PATCH => ActionType::Update,
|
||||
_ => unreachable!("reouter should prevent this"),
|
||||
};
|
||||
*/
|
||||
let _doc = match path.get("document") {
|
||||
Some(result) => result.clone(),
|
||||
None => "root".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user