mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Use auth'ed admin chat messages endpoint to get history
This commit is contained in:
parent
71b91a7fe0
commit
5345c124aa
@ -48,7 +48,7 @@ export default function Chat() {
|
||||
|
||||
const getInfo = async () => {
|
||||
try {
|
||||
const result = await fetchData(CHAT_HISTORY, { auth: false });
|
||||
const result = await fetchData(CHAT_HISTORY, { auth: true });
|
||||
setMessages(result);
|
||||
} catch (error) {
|
||||
console.log("==== error", error);
|
||||
|
@ -35,7 +35,7 @@ export const LOGS_ALL = `${API_LOCATION}logs`;
|
||||
export const LOGS_WARN = `${API_LOCATION}logs/warnings`;
|
||||
|
||||
// Get chat history
|
||||
export const CHAT_HISTORY = `${NEXT_PUBLIC_API_HOST}api/chat`;
|
||||
export const CHAT_HISTORY = `${API_LOCATION}chat/messages`;
|
||||
|
||||
// Get chat history
|
||||
export const UPDATE_CHAT_MESSGAE_VIZ = `${NEXT_PUBLIC_API_HOST}api/admin/chat/updatemessagevisibility`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user