Skip to content

Commit c2059b7

Browse files
committed
change sound search endpoint
1 parent e1b85b6 commit c2059b7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: .env.development

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
VUE_APP_API_URL=http://localhost:3001
22
VUE_APP_AUTH_CALLBACK_URL=http://localhost:8080/callback
3-
VUE_APP_FREESOUND_URL=http://localhost:3000
3+
VUE_APP_FREESOUND_URL=http://localhost:3001/api/search/freesound

Diff for: .env.production

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
VUE_APP_API_URL=https://api.rolodromo.com
22
VUE_APP_AUTH_CALLBACK_URL=https://rolodromo.com/callback
3-
VUE_APP_FREESOUND_URL=https://freesound.rolodromo.com
3+
VUE_APP_FREESOUND_URL=https://api.rolodromo.com/api/search/freesound

Diff for: src/config/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { VUE_APP_API_URL, VUE_APP_FREESOUND_URL, VUE_APP_AUTH_CALLBACK_URL } = pr
33
const config = {
44
api: {
55
baseUrl: VUE_APP_API_URL || 'https://api.rolodromo.com',
6-
freesoundUrl: VUE_APP_FREESOUND_URL || 'https://freesound.rolodromo.com'
6+
freesoundUrl: VUE_APP_FREESOUND_URL || 'https://api.rolodromo.com/api/search/freesound'
77
},
88
auth0: {
99
AUTH0_DOMAIN: 'guumaster.eu.auth0.com',

Diff for: src/modules/api/freesound.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const cleanName = sound => ({
1515
sound.name
1616
.toLowerCase()
1717
.replace(/(_|\s)+/g, ' ')
18-
.replace(/\.(aif|mp3|wav|flacc|ogg|m4a|aac|oga|webm)$/, '')
18+
.replace(/\.(aif|mp3|wav|flaac|flacc|ogg|m4a|aac|oga|webm)$/, '')
1919
.trim()
2020
)
2121
})

0 commit comments

Comments
 (0)