john-okeefe 748616df9d feat(games): accept full Steam store URL in create()
Allow callers to pass either a raw Steam app ID or a full store URL (e.g. https://store.steampowered.com/app/730/...) in req.body.steamId.

In create() in controllers/games.js:

- normalize input into a local steamId variable: if the value includes store.steampowered.com, extract the numeric ID via match(/\d+/)[0], otherwise use the value as-is

- use the normalized steamId for both duplicate checks: user-scoped lookup (steamId + accessedBy.user) and global lookup

This lets users paste a copied store link directly without manually stripping the app ID, while keeping existing raw-ID behavior unchanged.
2026-09-05 19:16:14 -04:00
2024-09-12 15:48:27 -04:00
2024-09-12 15:48:27 -04:00
2024-09-12 15:48:27 -04:00
2024-09-12 15:48:27 -04:00
2024-09-12 15:48:27 -04:00
2025-06-29 11:50:29 -04:00
2024-09-12 15:48:27 -04:00
2024-09-12 19:32:09 -04:00
2024-09-12 19:32:45 -04:00
2024-09-12 19:33:14 -04:00
2024-09-12 15:48:27 -04:00
2024-09-12 19:32:09 -04:00
2024-09-12 15:44:28 -04:00
2024-09-12 15:48:27 -04:00
2024-09-12 15:44:28 -04:00
2024-09-12 15:48:27 -04:00

games-express-api

The games API written in ExpressJS

S
Description
The games API written in ExpressJS
Readme GPL-3.0
147 KiB
v1.2
Latest
2026-09-06 10:12:24 -04:00
Languages
JavaScript 94.2%
Makefile 2.9%
Dockerfile 2.2%
Shell 0.7%