mirror of
https://github.com/nfonteyne/octane-website.git
synced 2026-09-03 23:24:48 +02:00
12 lines
365 B
JavaScript
12 lines
365 B
JavaScript
(async function init() {
|
|
await initNav('setlist');
|
|
const allSongs = await api.get('/api/songs');
|
|
|
|
const editor = createSetlistEditor({
|
|
allSongs,
|
|
getSetlist: () => api.get('/api/setlists/next'),
|
|
createSetlist: (data) => api.post('/api/setlists', data),
|
|
emptyMessage: 'Aucun concert à venir pour le moment.',
|
|
});
|
|
await editor.load();
|
|
})();
|