mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-12 19:20:13 +00:00
12 lines
No EOL
277 B
JavaScript
12 lines
No EOL
277 B
JavaScript
import {instance, wrapper} from './Api';
|
|
|
|
export default {
|
|
// TODO: add ?continue=id
|
|
get ( channelID ) {
|
|
return wrapper(instance().get(`messages/${channelID}`));
|
|
},
|
|
|
|
post (channelID, data) {
|
|
return wrapper(instance().post(`messages/${channelID}`, data))
|
|
}
|
|
} |