SiteCommunitySupportController

struct SiteCommunitySupportController : SiteControllerUtils

The site routes under /communitysupport: filing and reviewing Community Support reports, the action log, and a CSV export.

Like the other site controllers these call the API (CommunitySupportController) rather than touching the database, so every access rule lives in one place. These are all private routes: they never accept token auth, and aren’t shareable between users.

Pages

  • root(_:) Asynchronous

    GET /communitysupport

    The landing page: links to everything, with unread/open counts.

    See more

    Declaration

    Swift

    func root(_ req: Request) async throws -> View
  • reportForm(_:) Asynchronous

    GET /communitysupport/newreport

    The form for filing a report.

    See more

    Declaration

    Swift

    func reportForm(_ req: Request) async throws -> View
  • postReport(_:) Asynchronous

    POST /communitysupport/report

    Files the report from the form.

    Declaration

    Swift

    func postReport(_ req: Request) async throws -> HTTPStatus
  • reports(_:) Asynchronous

    GET /communitysupport/reports

    The report queue. Takes the API’s status, start, and limit query parameters.

    See more

    Declaration

    Swift

    func reports(_ req: Request) async throws -> View
  • report(_:) Asynchronous

    GET /communitysupport/report/:report_id

    One report, its timeline, and the status and discussion controls.

    See more

    Declaration

    Swift

    func report(_ req: Request) async throws -> View
  • postStatus(_:) Asynchronous

    POST /communitysupport/report/:report_id/status

    Declaration

    Swift

    func postStatus(_ req: Request) async throws -> HTTPStatus
  • postDiscussion(_:) Asynchronous

    POST /communitysupport/report/:report_id/discussion

    Starts the report’s discussion thread, if it doesn’t have one. The page reloads and shows a link to it.

    Declaration

    Swift

    func postDiscussion(_ req: Request) async throws -> HTTPStatus
  • actionLog(_:) Asynchronous

    GET /communitysupport/log

    The team-wide action log.

    See more

    Declaration

    Swift

    func actionLog(_ req: Request) async throws -> View
  • downloadReports(_:) Asynchronous

    GET /communitysupport/reports/download

    A CSV of every report. THO and above only.

    See more

    Declaration

    Swift

    func downloadReports(_ req: Request) async throws -> Response

Utilities