Moved actions into separate sub-module.
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 1s

This commit is contained in:
2026-02-03 08:56:42 -05:00
parent f5e220a74f
commit aa4a5b9b7c
11 changed files with 230 additions and 21 deletions

View File

@@ -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(),