mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: update endpoints
This commit is contained in:
parent
5369274c6e
commit
bde396c7db
9 changed files with 9 additions and 9 deletions
|
|
@ -3,7 +3,7 @@ import { HydraApi } from "../hydra-api";
|
|||
import { gameRepository } from "@main/repository";
|
||||
|
||||
export const createGame = async (game: Game) => {
|
||||
HydraApi.post(`/games`, {
|
||||
HydraApi.post(`/profile/games`, {
|
||||
objectId: game.objectID,
|
||||
playTimeInMilliseconds: Math.trunc(game.playTimeInMilliseconds),
|
||||
shop: game.shop,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue