1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-09 16:42:48 +00:00
Files
go-discord-bot/client/app/services/sound.service.ts

11 lines
275 B
TypeScript

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,
};