mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 22:51:30 -07:00
c33919bc67
And a few other minor things, but primarily, the balance table exists and also consumable/inventory table.
35 lines
692 B
Markdown
35 lines
692 B
Markdown
# commerce
|
|
|
|
A Cloudflare Workers application using Hono
|
|
|
|
## Endpoints
|
|
|
|
- `GET /purchase/v1/hasspentmoney` — whether the player has ever spent money;
|
|
`false`.
|
|
- `GET /api/catalog/v1/all` — the purchasable SKU catalog (token packs, special
|
|
offers), served from the bundled `static/catalog-v1-all.json`. The client's
|
|
`?onlyAvailableSkus=true` is accepted and ignored: the bundled catalog already
|
|
contains only available SKUs.
|
|
- `GET /purchasecampaign/allcurrent/v2` — current purchase campaigns
|
|
(limited-time offers/promos); `[]` (none active).
|
|
|
|
## Development
|
|
|
|
### Run in dev mode
|
|
|
|
```sh
|
|
pnpm dev
|
|
```
|
|
|
|
### Run tests
|
|
|
|
```sh
|
|
pnpm test
|
|
```
|
|
|
|
### Deploy
|
|
|
|
```sh
|
|
pnpm turbo deploy
|
|
```
|