Use hosted backend

This commit is contained in:
Sheldon Lee 2023-11-14 03:51:09 +08:00
parent 2c31cf8820
commit 098777bb02
2 changed files with 2 additions and 1 deletions

View File

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

View File

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