We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 917d5bc commit 9ed4619Copy full SHA for 9ed4619
pages/create.tsx
@@ -93,6 +93,10 @@ export default function CreateItem() {
93
const addedNFT = await addToIPFS(nftData)
94
// TODO: need fix this url?
95
const dweb_search_url = `https://dweb-search-api.anwen.cc/add_meta`
96
+ const sig_login = localStorage.getItem("sig_login")
97
+ const aethAccount = localStorage.getItem("ethAccount")
98
+ axios.defaults.headers.common['authorization'] = `Bearer ${sig_login}`
99
+ axios.defaults.headers.common['address'] = aethAccount
100
const ret = await axios.post(dweb_search_url, {
101
path: addedNFT.path,
102
eth: ethAccount,
0 commit comments