Skip to main content

list_scripts

Function list_scripts 

Source
async fn list_scripts(__arg0: State<Arc<SharedState>>) -> impl IntoResponse
Expand description

GET /api/scripts — lists scripted-plugin files found in the plugins/ directory next to the config directory (currently .lua only).

A missing or unreadable directory yields an empty list rather than an error.

{ "scripts": [ { "name": "my_filter", "file": "plugins/my_filter.lua", "runtime": "lua" } ] }