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: {