messing around with the backend
Some checks failed
Deploy Backend / deploy (push) Successful in 1m36s
Deploy Website / deploy (push) Has been cancelled

This commit is contained in:
Lee
2024-10-04 23:59:29 +01:00
parent 296179a10b
commit e202d72331
11 changed files with 90 additions and 16 deletions

View File

@ -6,7 +6,10 @@ export class AppController {
constructor(private readonly appService: AppService) {}
@Get("/")
getHello(): string {
return this.appService.getHello();
getHome() {
return {
message: "ScoreSaber Reloaded API",
version: this.appService.getVersion(),
};
}
}

View File

@ -0,0 +1,12 @@
import { Controller, Get, Param } from "@nestjs/common";
import { PlayerService } from "../service/player.service";
@Controller("/player")
export class PlayerController {
constructor(private readonly playerService: PlayerService) {}
@Get("/history/:id")
getHistory(@Param("id") id: string) {
return this.playerService.getHistory(id);
}
}