import Bottle from "bottlejs";

import ContentService from "../content";
import UploadsService from "../uploads";
import SoundsService from "../sounds";

const bottle = new Bottle();
export default {
  init(config) {
    bottle.constant("user", config.user);
    bottle.constant("uploadToken", config.uploadToken);

    bottle.service("Content", ContentService, "user");
    bottle.service("Uploads", UploadsService, "user", "uploadToken");
    bottle.service("Sounds", SoundsService);
  },
  instance: bottle.container
};
