add react web project

This commit is contained in:
YouROK
2020-12-24 12:59:16 +03:00
parent 4e816f2cae
commit a404545133
26 changed files with 20515 additions and 2 deletions

16
web/src/utils/Hosts.js Normal file
View File

@@ -0,0 +1,16 @@
export var torrserverHost = ''
// export var torrserverHost = 'http://127.0.0.1:8090'
export const torrentsHost = () => torrserverHost + '/torrents'
export const cacheHost = () => torrserverHost + '/cache'
export const torrentUploadHost = () => torrserverHost + '/torrent/upload'
export const settingsHost = () => torrserverHost + '/settings'
export const streamHost = () => torrserverHost + '/stream'
export const shutdownHost = () => torrserverHost + '/shutdown'
export const echoHost = () => torrserverHost + '/echo'
export const playlistAllHost = () => torrserverHost + '/playlistall/all.m3u'
export const playlistTorrHost = () => torrserverHost + '/stream'
export const setTorrServerHost = (host) => {
torrserverHost = host
}