mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-17 20:27:10 +02:00
feat: implement mobile-optimized DLC management page with EAN lookup and status-based filtering
This commit is contained in:
1 parent
475c52cede
commit
1488accbdb
3 files changed
+21
-2
No files matched your search
@@ -128,7 +128,7 @@ export default function DlcPage() {
|
||||
eanDebounceRef.current = setTimeout(async () => {
|
||||
setEanLookupLoading(true);
|
||||
try {
|
||||
const res = await fetch(`https://api.ffnancy.fr/api/articles?ean=${encodeURIComponent(gencodeValue)}&limit=1`);
|
||||
const res = await fetch(`/api/ffnancy/articles?ean=${encodeURIComponent(gencodeValue)}&limit=1`, { credentials: 'include' });
|
||||
if (!res.ok) return;
|
||||
const data = await res.json();
|
||||
const article = data.articles?.[0];
|
||||
|
||||
@@ -153,7 +153,7 @@ export default function MobileDlcPage() {
|
||||
eanDebounceRef.current = setTimeout(async () => {
|
||||
setEanLookupLoading(true);
|
||||
try {
|
||||
const res = await fetch(`https://api.ffnancy.fr/api/articles?ean=${encodeURIComponent(gencodeValue)}&limit=1`);
|
||||
const res = await fetch(`/api/ffnancy/articles?ean=${encodeURIComponent(gencodeValue)}&limit=1`, { credentials: 'include' });
|
||||
if (!res.ok) return;
|
||||
const data = await res.json();
|
||||
const article = data.articles?.[0];
|
||||
|
||||
Reference in new issue
Block a user