Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

middleware in endpoint controller routing-controllers

@Get("/something/:id")
@UseBefore(checkPermission(['canReadThis','canWriteThis']))
getOne(@Param("id") id: number) {
    // ...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #middleware #endpoint #controller
ADD COMMENT
Topic
Name
2+2 =