Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AdminService

Admin services.

Hierarchy

Constructors

Properties

Methods

Constructors

constructor

Properties

Readonly dbm

dbm: default

Methods

getPosts

  • Get all posts.

    Returns Promise<AdminPost[]>

    All posts in the database.

getRecords

  • getRecords(table: string): Promise<number>
  • Get the number of records in a table.

    Parameters

    • table: string

      The table name.

    Returns Promise<number>

    The number of records in the table.

getUsers

  • Get all users.

    Returns Promise<AdminUser[]>

    All users in the database.

Generated using TypeDoc