feat(topic state and command) - add tab

This commit is contained in:
2026-02-06 16:16:08 +07:00
parent 2172614789
commit f12f34352a
5 changed files with 96 additions and 15 deletions

View File

@@ -17,6 +17,16 @@ export const postCommandStatus = async (
};
export const getTopicsState = async (): Promise<TopicData> => {
const res = await api.get("/topics/v1/state-reply", {
headers: {
Authorization: basicAuth(ENV.basicUsername, ENV.basicPassword),
},
});
return res.data;
};
export const getTopicsCommand = async (): Promise<TopicData> => {
const res = await api.get("/topics/v1/commands", {
headers: {
Authorization: basicAuth(ENV.basicUsername, ENV.basicPassword),