import axios from "axios"; import store from "@/store/index"; const AuthorizedUserService = axios.create({ withCredentials: true, baseURL: `https://api.amic.ru/api/v1/comments`, headers: { "key" : "Accept", "value" : "application/json", "description" : "", "type" : "text", "enabled": true, }, }); export default { createComment(comment, token) { return AuthorizedUserService.post("/create", { text: comment.text, pull: comment.pullId }, { headers: { "AccessToken" : token }}) } }