xecute-cli 0.1.17

Project and resource scaffolding for Axum applications with Xecute tools
//! Standalone controller; register it in a module to expose these routes.

use xecute::prelude::*;

/// Injectable controller owning the feature route prefix.
#[controller("/__FEATURE__")]
#[derive(Injectable)]
pub struct __TYPE__Controller {}

#[routes]
impl __TYPE__Controller {
    /// Collection skeleton for this feature.
    #[get("")]
    #[api(
        summary = "List __FEATURE__ records",
        tag = "__TYPE__",
        operation_id = "list__TYPE__"
    )]
    #[resp(200, "Current collection", json = Vec<String>)]
    async fn list(&self) -> Json<Vec<String>> {
        Json(Vec::new())
    }
}