add comment to middleware

This commit is contained in:
2025-03-27 21:49:09 -03:00
parent f757334899
commit 88c2585d2a
2 changed files with 22 additions and 3 deletions

View File

@@ -43,7 +43,9 @@ def get_courses():
'/',
compress=True,
tags=['Course'],
middlewares=[AuditLogMiddleware('COURSE_ADD', collect)],
middlewares=[
AuditLogMiddleware('COURSE_ADD', collect, ('id', 'name')),
],
)
def post_course(payload: Course):
create_course(