import credentialedProxyHandler from "utils/proxy/handlers/credentialed";

const widget = {
  api: "{url}/{endpoint}",
  proxyHandler: credentialedProxyHandler,

  mappings: {
    stats: {
      endpoint: "api/dashboard/stats",
      validate: ["eaten", "burned", "remaining", "steps"],
    },
  },
};

export default widget;
