11 lines
291 B
TypeScript
11 lines
291 B
TypeScript
import { Router } from 'express'
|
|
import { makeResponse } from '../../libs'
|
|
import SpotifyController from '../../controllers/spotify.controller'
|
|
|
|
const router = Router()
|
|
const { fetchSpotifyTopSongs } = new SpotifyController()
|
|
|
|
router.get('/top', fetchSpotifyTopSongs)
|
|
|
|
export default router
|