Skip to content

Commit

Permalink
chore: test code
Browse files Browse the repository at this point in the history
  • Loading branch information
imba97 committed Sep 30, 2024
1 parent 95d48df commit 18b39be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 0 additions & 6 deletions composables/navidrome/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ export const axiosInfo = {
baseURL: runtimeConfig.env.NAVIDROME_API_URL
})

axiosInstance.interceptors.response.use((response) => {
console.log('env')
console.log(runtimeConfig.env)
return response
})

return axiosInstance
},

Expand Down
6 changes: 2 additions & 4 deletions server/api/playing/test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { axiosInfo } from '~/composables/navidrome/shared'

export default defineEventHandler(async () => {
return {
version: '1',
env: axiosInfo.testEnv
}
return await axiosInfo.instance.post('/getNowPlaying.view', null, axiosInfo.commonOptions)
.then(res => _get(res.data, 'subsonic-response.nowPlaying.entry.0', null))
})

0 comments on commit 18b39be

Please sign in to comment.