From 098777bb020dba30ed245eae9bb06676a2b14775 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Tue, 14 Nov 2023 03:51:09 +0800 Subject: [PATCH] Use hosted backend --- package.json | 1 + src/App.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 27f0ca4..60b6c73 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "name": "react-photo-viewer", + "homepage": "https://dundun.ddns.net/photos", "version": "0.1.0", "private": true, "dependencies": { diff --git a/src/App.tsx b/src/App.tsx index 1012024..b0e6bc6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -156,7 +156,7 @@ function getFileName(string: string): string { function post(category: string, callback: (text: string) => void) { fetch( //'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', headers: {