ผูก log โครงสร้างขรก
This commit is contained in:
parent
79989664d5
commit
b3ecbf5496
7 changed files with 76 additions and 43 deletions
|
|
@ -38,10 +38,10 @@ async function logMiddleware(req: Request, res: Response, next: NextFunction) {
|
|||
|
||||
res.on("finish", () => {
|
||||
if (!req.url.startsWith("/api/")) return;
|
||||
let system = "org";
|
||||
let system = "organization";
|
||||
if (req.url.startsWith("/api/v1/org/metadata/")) system="metadata";
|
||||
if (req.url.startsWith("/api/v1/org/auth/authRoleAttr/")) system = "admin";
|
||||
if (req.url.startsWith("/api/v1/org/profile/")) system = "profile";
|
||||
if (req.url.startsWith("/api/v1/org/profile/")) system = "registry";
|
||||
// if (req.url.startsWith("/api/v1/org/auth/authRoleAttr/")) system = "admin";
|
||||
// if (req.url.startsWith("/api/v1/org/auth/authRoleAttr/")) system = "admin";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue