This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
scoresaber-reloadedv3/projects/backend/src/service/app.service.ts
Liam 27c88cdb75
All checks were successful
Deploy Backend / deploy (push) Successful in 3m4s
Deploy Website / deploy (push) Successful in 4m30s
add a basic landing page
2024-10-12 04:12:35 +01:00

16 lines
369 B
TypeScript

import { PlayerModel } from "../model/player";
import { AppStatistics } from "@ssr/common/types/backend/app-statistics";
export class AppService {
/**
* Gets the app statistics.
*/
public static async getAppStatistics(): Promise<AppStatistics> {
const trackedPlayers = await PlayerModel.countDocuments();
return {
trackedPlayers,
};
}
}