im stupid
This commit is contained in:
parent
e1432f1f14
commit
f64cb8b096
2 changed files with 5 additions and 4 deletions
5
.idea/workspace.xml
generated
5
.idea/workspace.xml
generated
|
@ -6,7 +6,7 @@
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="4cc93404-63bf-4aee-bd04-2b0203a508b3" name="Changes" comment="">
|
<list default="true" id="4cc93404-63bf-4aee-bd04-2b0203a508b3" name="Changes" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/app/page.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/page.tsx" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/app/images/upload/page.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/app/images/upload/page.tsx" afterDir="false" />
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
@ -74,7 +74,8 @@
|
||||||
<workItem from="1733239451427" duration="6396000" />
|
<workItem from="1733239451427" duration="6396000" />
|
||||||
<workItem from="1733250368879" duration="1956000" />
|
<workItem from="1733250368879" duration="1956000" />
|
||||||
<workItem from="1733252479518" duration="1692000" />
|
<workItem from="1733252479518" duration="1692000" />
|
||||||
<workItem from="1733254541032" duration="3191000" />
|
<workItem from="1733254541032" duration="4316000" />
|
||||||
|
<workItem from="1733477426661" duration="67000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
|
|
@ -26,7 +26,7 @@ export default function Page() {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('file', file);
|
formData.append('file', file);
|
||||||
|
|
||||||
await fetch('http://localhost:7070/api/token', {
|
await fetch(`${API_URL}/api/token`, {
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
//@ts-expect-error
|
//@ts-expect-error
|
||||||
headers: {
|
headers: {
|
||||||
|
@ -38,7 +38,7 @@ export default function Page() {
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
console.log(apiKey);
|
console.log(apiKey);
|
||||||
await fetch('http://localhost:7070/api/upload', {
|
await fetch(`http://${API_URL}/api/upload`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: formData,
|
body: formData,
|
||||||
headers: {
|
headers: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue