lariv-rs 0.1.0

Compile-time plugin web application framework built on Axum, SeaORM, Maud, and HTMX
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Export HTTP routes — page and download endpoints.
use lariv_rs::define_plugin_routes;

use super::handlers;

define_plugin_routes! {
    plugin: ExportPluginTag;
    routes: [
        get ExportPageRouteTag, "/export", handlers::page;
        get ExportDownloadGetRouteTag, "/export/download", bare handlers::download_get, redirect;
        post ExportDownloadRouteTag, "/export/download", bare handlers::download, file;
    ]
}