Skip to content

Commit c0f9f75

Browse files
committed
fix(api): Do not reuse routing groups to avoid redundant checks
1 parent bfd63b2 commit c0f9f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqle/api/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ func StartApi(net *gracenet.Net, exitChan chan struct{}, config *config.SqleOpti
520520
}
521521

522522
{ // scanner token auth
523-
v2Router.POST("projects/:project_name/audit_plans/:audit_plan_id/sqls/upload", v2.UploadInstanceAuditPlanSQLs, sqleMiddleware.ScannerVerifier())
523+
e.POST("v2/projects/:project_name/audit_plans/:audit_plan_id/sqls/upload", v2.UploadInstanceAuditPlanSQLs, sqleMiddleware.ScannerVerifier())
524524
}
525525

526526
// enterprise customized apis

0 commit comments

Comments
 (0)