mirror of
https://github.com/txtdot/txtdot
synced 2024-10-18 14:40:19 +03:00
Merge pull request #3 from TxtDot/artegoser
feat: custom axios instance
This commit is contained in:
commit
b6851d2174
@ -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
7
src/types/axios.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import axios from "axios";
|
||||
|
||||
export default axios.create({
|
||||
headers: {
|
||||
"User-Agent": "txtdot",
|
||||
},
|
||||
});
|
Loading…
Reference in New Issue
Block a user