17 lines
268 B
JavaScript
17 lines
268 B
JavaScript
|
import utils from './utils.js'
|
||
|
|
||
|
const search = ({query, store}) => {
|
||
|
return utils.request({
|
||
|
store,
|
||
|
url: '/api/pleroma/search_user',
|
||
|
params: {
|
||
|
query
|
||
|
}
|
||
|
}).then((data) => data.json())
|
||
|
}
|
||
|
const UserSearch = {
|
||
|
search
|
||
|
}
|
||
|
|
||
|
export default UserSearch
|