Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "post/comment/comment.controller"

Index

Functions

commentSave

  • commentSave(req: any, res: any): Promise<void>

handleSaveComment

  • handleSaveComment(reqBody: any, currentUser: any, currentNode: any, baseUrl: any, currentEvent?: any): Promise<any>
  • Handler for handling the comment saving form. Reusable between all controllers of models supporting comments.

    Parameters

    • reqBody: any

      The parsed request body

    • currentUser: any
    • currentNode: any
    • baseUrl: any

      The view URL for the current node

    • Optional currentEvent: any

      The current event, if the node is an entry

    Returns Promise<any>

    A URL to redirect to

Generated using TypeDoc