add a basic landing page
All checks were successful
Deploy Backend / deploy (push) Successful in 3m4s
Deploy Website / deploy (push) Successful in 4m30s

This commit is contained in:
Lee
2024-10-12 04:12:35 +01:00
parent 0ac70f4781
commit 27c88cdb75
7 changed files with 75 additions and 2 deletions

View File

@ -0,0 +1,15 @@
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,
};
}
}