logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe

user_search.js (268B)


      1 import utils from './utils.js'
      2 
      3 const search = ({query, store}) => {
      4   return utils.request({
      5     store,
      6     url: '/api/pleroma/search_user',
      7     params: {
      8       query
      9     }
     10   }).then((data) => data.json())
     11 }
     12 const UserSearch = {
     13   search
     14 }
     15 
     16 export default UserSearch