mirror of
https://github.com/danbulant/Nertivia-Client
synced 2026-06-13 19:42:01 +00:00
18 lines
No EOL
391 B
JavaScript
18 lines
No EOL
391 B
JavaScript
import {instance, wrapper} from './Api';
|
|
|
|
export default {
|
|
post ( friend ) {
|
|
return wrapper(instance().post('/user/relationship', friend));
|
|
},
|
|
put( uniqueID ) {
|
|
return wrapper(instance().put('/user/relationship', {uniqueID}));
|
|
},
|
|
delete( uniqueID ) {
|
|
return wrapper(instance().delete(
|
|
'/user/relationship',
|
|
{
|
|
data: {uniqueID}
|
|
}
|
|
));
|
|
}
|
|
} |