Added backend server
This commit is contained in:
1 parent
91c2ab054d
commit
085e7ffd73
612 files changed
+67073
-3
No files matched your search
@@ -1,7 +1,5 @@
|
||||
const API_KEY = "0FLYFe9BnzGlk2OPHrWleCulNzHpWgtC";
|
||||
|
||||
export async function fetchEvents(city) {
|
||||
const url = `https://app.ticketmaster.com/discovery/v2/events.json?apikey=${API_KEY}&city=${city}`;
|
||||
const url = `http://localhost:3000/api/events?city=${city}`;
|
||||
|
||||
try {
|
||||
const response = await fetch(url);
|
||||
|
||||
Reference in new issue
Block a user