Use hosted backend
This commit is contained in:
parent
2c31cf8820
commit
098777bb02
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-photo-viewer",
|
"name": "react-photo-viewer",
|
||||||
|
"homepage": "https://dundun.ddns.net/photos",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -156,7 +156,7 @@ function getFileName(string: string): string {
|
|||||||
function post(category: string, callback: (text: string) => void) {
|
function post(category: string, callback: (text: string) => void) {
|
||||||
fetch(
|
fetch(
|
||||||
//'http://localhost/photo-viewer-backend/php/get.php',
|
//'http://localhost/photo-viewer-backend/php/get.php',
|
||||||
'http://dundun.ddns.net/photo-viewer/photo-viewer-backend/php/get.php',
|
'https://dundun.ddns.net/photo-viewer/photo-viewer-backend/php/get.php',
|
||||||
{
|
{
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
Loading…
Reference in New Issue
Block a user