Skip to content

Commit

Permalink
switch over to using azure function as backend
Browse files Browse the repository at this point in the history
  • Loading branch information
sam9116 committed Jul 18, 2024
1 parent 3e3dc0d commit 4c00f56
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 118 deletions.
2 changes: 1 addition & 1 deletion src/BaseInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const BaseInput = forwardRef(({ setConcerts,
let incomingArtistName = incomingArtistInfo.name;
let incomingArtistId = incomingArtistInfo.id
try {
let res = await fetch(`${process.env.REACT_APP_BACKEND}/FindArtistWithGigs/GetGigsById`, {
let res = await fetch(`${process.env.REACT_APP_BACKEND}/GetGigsByArtistId`, {
method: "POST",
headers: {
"content-type": "application/json;charset=utf-8",
Expand Down
4 changes: 2 additions & 2 deletions src/FetchArtist.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const FetchArtist = async (artistName) => {
const response = await fetch(
`${process.env.REACT_APP_BACKEND}/FindArtistWithGigs/GetArtistsByName?artistName=${artistName}`,
`${process.env.REACT_APP_BACKEND}/GetArtistsByName/${artistName}`,
{
method: "GET",
headers: {
Expand All @@ -13,7 +13,7 @@ export const FetchArtist = async (artistName) => {
let resJson = await response.json();
console.log(`artist count: ${resJson.length}`);
resJson = resJson.filter((value) => value.images.length > 0);
console.log(`artist count: ${resJson.length}`);
console.log(`artist count after removing artists with no profile picture: ${resJson.length}`);
return resJson;
}
return;
Expand Down
2 changes: 1 addition & 1 deletion src/GetSpotifyPlaylistArtistsWithShows.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function GetSpotifyPlaylistArtistsWithShows({followedArtists, setFollowedArtists

const extractedPlaylistId = url.substring(startIndex, endIndex);
setIsRequestTriggered(true);
await fetch(`${process.env.REACT_APP_BACKEND}/FindArtistWithGigs/GetSpotifyPlaylistArtistsWithGigs`, {
await fetch(`${process.env.REACT_APP_BACKEND}/GetSpotifyPlaylistArtistsWithGigs`, {
method: 'POST',
headers: {
'content-type': 'application/json;charset=utf-8'
Expand Down
114 changes: 0 additions & 114 deletions src/YourFavoriteSpotifyArtists.js

This file was deleted.

0 comments on commit 4c00f56

Please sign in to comment.