Rename module

This commit is contained in:
Dominik Werder
2024-04-29 11:34:54 +02:00
parent 78403b2537
commit 879b85d210
10 changed files with 16 additions and 11 deletions

View File

@@ -25,7 +25,14 @@ impl BackendListHandler {
if req.method() == Method::GET {
if accepts_json_or_all(req.headers()) {
let res = serde_json::json!({
"backends_available": ["sf-databuffer"]
"backends_available": [
{
"name": "sf-databuffer",
},
{
"name": "sf-imagebuffer",
},
]
});
let body = serde_json::to_string(&res)?;
Ok(response(StatusCode::OK).body(body_string(body))?)