REST routes for the current tenant's comments, all requiring a logged-in user. The author is taken from ctx().user. By default editing, deleting, resolving and reopening are restricted to the comment's author; pass authorize to apply your own per-resource policy.
basalt / comments/src / commentRoutes
Function: commentRoutes()
> commentRoutes(
options?):BasaltRoute[]Defined in: comments/src/plugin.ts:102
REST routes for the current tenant's comments, all requiring a logged-in user. The author is taken from
ctx().user. By default editing, deleting, resolving and reopening are restricted to the comment's author; passauthorizeto apply your own per-resource policy.Parameters
options?
CommentRoutesOptions={}Returns
BasaltRoute[]