[Fix] UI: useReceiveRoutes: add '/run/shutdown' endpoint.

This commit is contained in:
Sakamoto Shiina
2026-01-10 00:24:30 +09:00
parent de79f2799f
commit c6d5b6c6a8

View File

@@ -107,8 +107,9 @@ export const STATIC_ROUTE_META_LIST = [
{ endpoint: "/get/data/plugins_status", ns: configs, hook_name: "usePlugins", method_name: "updateSavedPluginsStatus" }, { endpoint: "/get/data/plugins_status", ns: configs, hook_name: "usePlugins", method_name: "updateSavedPluginsStatus" },
{ endpoint: "/set/data/plugins_status", ns: configs, hook_name: "usePlugins", method_name: "setSuccessSavedPluginsStatus" }, { endpoint: "/set/data/plugins_status", ns: configs, hook_name: "usePlugins", method_name: "setSuccessSavedPluginsStatus" },
// // Not Implemented Yet... // // Not Implemented.
{ endpoint: "/get/data/selectable_transcription_engines", ns: null, hook_name: null, method_name: null }, // Not implemented on UI yet. (if ai_models has not been detected, this will be blank array[]. if the ai_models are ok but just network has not connected, it'l be only ["Whisper"]) { endpoint: "/get/data/selectable_transcription_engines", ns: null, hook_name: null, method_name: null }, // Not implemented on UI yet. (if ai_models has not been detected, this will be blank array[]. if the ai_models are ok but just network has not connected, it'l be only ["Whisper"])
{ endpoint: "/run/shutdown", ns: null, hook_name: null, method_name: null }, // Not implemented on UI.
]; ];
export const useReceiveRoutes = () => { export const useReceiveRoutes = () => {