Compare commits

...

2 Commits

Author SHA1 Message Date
Flatlogic Bot
95d3937a79 v0 2025-10-24 21:52:32 +00:00
Flatlogic Bot
0fc8fdf309 v0 2025-10-24 13:21:04 +00:00
4 changed files with 12 additions and 7 deletions

5
.gitignore vendored
View File

@ -1,3 +1,8 @@
node_modules/
*/node_modules/
*/build/
**/node_modules/
**/build/
.DS_Store
.env

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{}

View File

@ -2,7 +2,7 @@ import axios from 'axios';
export async function getPexelsImage() {
try {
const response = await axios.get(`/pexels/image`);
const response = await axios.get(`/api/pexels/image`);
return response.data;
} catch (error) {
console.error('Error fetching image:', error);
@ -12,7 +12,7 @@ export async function getPexelsImage() {
export async function getPexelsVideo() {
try {
const response = await axios.get(`/pexels/video`);
const response = await axios.get(`/api/pexels/video`);
return response.data;
} catch (error) {
console.error('Error fetching video:', error);
@ -50,7 +50,7 @@ export async function getMultiplePexelsImages(
const queryString = missingQueries.join(',');
try {
const response = await axios.get(`/pexels/multiple-images`, {
const response = await axios.get(`/api/pexels/multiple-images`, {
params: { queries: queryString },
});