import Music from '#models/music';
export default class MusicController {
    async index({ response }) {
        const musics = await Music.all();
        return response.ok({
            data: {
                musics: musics.map((m) => ({ name: m.name, url: m.url })),
            },
        });
    }
}
//# sourceMappingURL=music_controller.js.map