icssoa 1 жил өмнө
parent
commit
cf1a0dd90d

+ 3 - 1
build/cool/eps/index.ts

@@ -84,7 +84,9 @@ async function getData(temps: any[]) {
 		temps.forEach((e) => {
 			const d = list.find((a) => e.prefix === a.prefix);
 
-			if (!d) {
+			if (d) {
+				Object.assign(d, e);
+			} else {
 				list.push(e);
 			}
 		});

+ 2 - 2
src/cool/bootstrap/eps.ts

@@ -36,7 +36,7 @@ export function createEps(modules: Module[]) {
 					.filter((e) => !["constructor", "namespace"].includes(e))
 					.map((e) => {
 						return {
-							path: e
+							path: `/${e}`
 						};
 					});
 
@@ -44,7 +44,7 @@ export function createEps(modules: Module[]) {
 					api,
 					module: s.namespace.split("/")[0],
 					name: s.constructor.name,
-					prefix: s.namespace
+					prefix: `/admin/${s.namespace}`
 				});
 			} else {
 				for (const i in s) {