feat: custom axios instance

This commit is contained in:
Artemy 2023-08-14 14:17:53 +03:00
parent 0b4663195c
commit ec7d100867
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,5 @@
import { Readability } from "@mozilla/readability";
import axios from "axios";
import axios from "../types/axios";
import { JSDOM } from "jsdom";
import { IHandlerOutput } from "./handler.interface";

7
src/types/axios.ts Normal file
View File

@ -0,0 +1,7 @@
import axios from "axios";
export default axios.create({
headers: {
"User-Agent": "txtdot",
},
});