import Connection from './Connection.js';

const API_PATH = '/users';

class RiderCardsApi {
  createUser(userData) {
    return Connection.send(API_PATH, userData, 'POST');
  }
}
export default new RiderCardsApi();

import Connection from './Connection.js';

const API_PATH = '/users';

class UsersApi {
  createUser(userData) {
    return Connection.send(API_PATH, userData, 'POST');
  }
}

export default new UsersApi();

Rename a leftover class name