aboutsummaryrefslogtreecommitdiff
path: root/src/services/new_api/user_search.js
blob: ce7da88e4df212ecb15cbf08b488de9f742669f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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