fix: remove /admin/ prefix from explorer API calls (baseURL already includes /admin)
This commit is contained in:
parent
6654d57270
commit
e0f5584545
1 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ export default function Explorer() {
|
|||
const [projectMap, setProjectMap] = useState<Record<string, string>>({});
|
||||
|
||||
useEffect(() => {
|
||||
api.get("/admin/users?limit=200").then(r => {
|
||||
api.get("/users?limit=200").then(r => {
|
||||
const m: Record<string, string> = {};
|
||||
for (const u of r.data?.items ?? []) {
|
||||
const label = u.full_name
|
||||
|
|
@ -84,7 +84,7 @@ export default function Explorer() {
|
|||
setUserMap(m);
|
||||
}).catch(() => {});
|
||||
|
||||
api.get("/admin/projects").then(r => {
|
||||
api.get("/projects").then(r => {
|
||||
const m: Record<string, string> = {};
|
||||
for (const p of r.data ?? []) {
|
||||
m[p._id] = p.name ?? p._id;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue