add a basic landing page
This commit is contained in:
15
projects/backend/src/service/app.service.ts
Normal file
15
projects/backend/src/service/app.service.ts
Normal 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,
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user