Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LeaderboardsController

label

STATISTICS

description

The leaderboards controller of the app. Handles requests about leaderboards that are available in the database.

This controller defines the following routes:

URI HTTP method Class method Description
/statistics/leaderboards GET LeaderboardsController.find Responds with a pageable PaginatedResultDTO that contains StatisticsDTO objects.


since

v0.3.2

Hierarchy

  • LeaderboardsController

Index

Constructors

Methods

Constructors

Methods

  • Requests a user's leaderboard entries. This endpoint is protected and a valid access token must be attached in the Authorization request header, in signed cookies or in browser cookies.

    The request is secured using the AuthGuard guard which attaches a payload to the request object.

    method

    GET

    access

    protected

    async

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

      An express request used to extract the authenticated user payload.

    • query: StatisticsQuery

    Returns Promise<StatisticsDTO>

    An authenticated user's owned assets.

Generated using TypeDoc