James Grugett
b53e4acea6
API: Cache markets for 15 seconds at least
2022-10-01 13:37:56 -05:00
mantikoros
571cf80e13
markets api: only load 500 markets by default
2022-08-22 14:42:23 -05:00
Ben Congdon
c3bc25a4b9
Add API route for listing a bets by user ( #567 )
...
* Add API route for getting a user's bets
* Refactor bets API to use /bets
* Update /markets to use zod validation
* Update docs
2022-07-07 15:36:02 -07:00
Marshall Polaris
5a2ff18859
Add paging to /markets
API endpoint ( #468 )
...
* Add really simple paging to markets endpoint
* Document changes to markets endpoint
* n -> limit
2022-06-08 18:08:06 -07:00
Marshall Polaris
5efcf61289
Configure compiler to allow absolute imports from root ( #147 )
2022-05-08 13:33:58 -07:00
Marshall Polaris
731e5d5b7c
Apply permissive CORS headers to API ( #115 )
...
* Take cors package as dependency
* Apply permissive CORS headers to all API routes
2022-04-30 13:30:49 -07:00
Austin Chen
8f40350a75
API: Rename to LiteMarket/FullMarket; include creator avatar url
2022-02-17 16:04:05 -08:00
Austin Chen
51aa8df010
Set up a read API using Vercel serverless functions ( #49 )
...
* Set up read API using Vercel serverless functions
Featuring:
/api/v0/markets
/api/v0/market/[contractId]
/api/v0/slug/[contractSlug]
* Include tags in API
2022-02-17 12:56:24 -08:00