1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

Switch cors proxy

This commit is contained in:
James Hawkins 2021-07-21 10:22:40 +01:00
parent 3b6f0c8277
commit b68c32e9fa
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
import { unpack } from './util/unpacker';
const CORS_URL = 'https://hidden-inlet-27205.herokuapp.com/';
const CORS_URL = 'https://safe-reaches-91175.herokuapp.com/';
const BASE_URL = `${CORS_URL}https://gomo.to`;
const MOVIE_URL = `${BASE_URL}/movie`
const DECODING_URL = `${BASE_URL}/decoding_v3.php`

View file

@ -2,7 +2,7 @@ import Fuse from 'fuse.js'
import JSON5 from 'json5'
function getCorsUrl(url) {
return `https://hidden-inlet-27205.herokuapp.com/${url}`;
return `https://safe-reaches-91175.herokuapp.com/${url}`;
}
async function getVideoUrl(config) {

View file

@ -103,7 +103,7 @@ export function SearchView() {
React.useEffect(() => {
async function fetchHealth() {
const HOME_URL = "https://hidden-inlet-27205.herokuapp.com/https://lookmovie.io/"
const HOME_URL = "https://safe-reaches-91175.herokuapp.com/https://lookmovie.io/"
await fetch(HOME_URL).catch(() => {
// Request failed; source likely offline
setOfflineStatus(`Our content provider is currently offline, apologies.`)