mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-14 04:17:29 +00:00
Add server setting for local instance origin
This commit is contained in:
parent
6603358816
commit
0424996e31
@ -74,7 +74,7 @@ class Refresher {
|
||||
}
|
||||
|
||||
refreshChannel(ucid) {
|
||||
return fetch(`http://localhost:3000/api/v1/channels/${ucid}/latest`).then(res => res.json()).then(root => {
|
||||
return fetch(`${constants.server_setup.local_instance_origin}/api/v1/channels/${ucid}/latest`).then(res => res.json()).then(root => {
|
||||
if (Array.isArray(root)) {
|
||||
root.forEach(video => {
|
||||
// organise
|
||||
|
@ -16,6 +16,10 @@ let constants = {
|
||||
}
|
||||
},
|
||||
|
||||
server_setup: {
|
||||
local_instance_origin: "http://localhost:3000"
|
||||
},
|
||||
|
||||
caching: {
|
||||
csrf_time: 4*60*60*1000,
|
||||
seen_token_subscriptions_eligible: 40*60*60*1000,
|
||||
|
Loading…
Reference in New Issue
Block a user