mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 01:22:48 +00:00
play sounds from web ui - store uploaded sounds in database
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
export * from './axios.service';
|
||||
export * from './oauth.service';
|
||||
export * from './sound.service';
|
||||
export * from './storage.service';
|
||||
|
||||
10
client/app/services/sound.service.ts
Normal file
10
client/app/services/sound.service.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { SoundType } from '../components/sound-list/sound-list';
|
||||
import { axios } from './axios.service';
|
||||
|
||||
const playSound = (sound: SoundType): Promise<any> => {
|
||||
return axios.post('/api/sound/play', { name: sound.name });
|
||||
};
|
||||
|
||||
export const SoundService = {
|
||||
playSound,
|
||||
};
|
||||
Reference in New Issue
Block a user