Move API endpoints under an API url namespace. Closes #148

This commit is contained in:
Gabe Kangas
2020-09-14 16:15:53 -07:00
parent 6a3f634ef5
commit 80b2b9e668
2 changed files with 8 additions and 8 deletions

View File

@@ -1,9 +1,9 @@
// misc constants used throughout the app
export const URL_STATUS = `/status`;
export const URL_CHAT_HISTORY = `/chat`;
export const URL_CUSTOM_EMOJIS = `/emoji`;
export const URL_CONFIG = `/config`;
export const URL_STATUS = `/api/status`;
export const URL_CHAT_HISTORY = `/api/chat`;
export const URL_CUSTOM_EMOJIS = `/api/emoji`;
export const URL_CONFIG = `/api/config`;
// TODO: This directory is customizable in the config. So we should expose this via the config API.
export const URL_STREAM = `/hls/stream.m3u8`;