Add itunes proxy back :(
This commit is contained in:
parent
7bb0497ff4
commit
b5cb3e78ab
2 changed files with 16 additions and 0 deletions
2
app.js
2
app.js
|
@ -14,6 +14,7 @@ import index from './routes/index';
|
|||
import recent from './routes/recent';
|
||||
import search from './routes/search';
|
||||
import share from './routes/share';
|
||||
import itunesProxy from './routes/itunes-proxy';
|
||||
|
||||
const debug = debuglog('match.audio');
|
||||
|
||||
|
@ -38,6 +39,7 @@ app.use(route.get('/', index));
|
|||
app.use(route.get('/recent', recent));
|
||||
app.use(route.post('/search', search));
|
||||
app.use(route.get('/:service/:type/:id.:format?', share));
|
||||
app.use(route.get('/itunes/(.*)', itunesProxy));
|
||||
|
||||
if (!module.parent) {
|
||||
app.listen(process.env.PORT || 3000, () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue