feat(topic state and command) - add tab
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user