0.27.3 • Published 2 months ago
@leordev-tbdex/http-server v0.27.3
tbdex http server
A configurable implementation of the tbdex http api draft specification
This repo is currently under construction 🚧
Installation
npm install @tbdex/http-server
Usage
import { TbdexHttpServer } from '@tbdex/http-server'
const api = new TbdexHttpServer()
api.get('offerings', async (ctx, filter) => { /* write biz logic here */ })
api.get('exchanges', async (ctx, filter) => { /* write biz logic here */ })
api.submit('rfq', async (ctx, message) => { /* write biz logic here */ })
api.submit('order', async (ctx, message) => { /* write biz logic here */ })
api.submit('close', async (ctx, message) => { /* write biz logic here */ })
await api.listen(9000, () => {
console.log('Server listening on port 9000')
})
0.27.3
2 months ago
0.0.0-next-433b71a-20240221164226
3 months ago
0.0.0-next-20240214183942
3 months ago
0.0.0-next-20240214183615
3 months ago
0.27.2
3 months ago
0.0.0-rc-20240214020233
3 months ago
0.27.1
3 months ago
0.27.0
3 months ago
0.26.4
3 months ago
0.26.3
3 months ago
0.26.2
3 months ago
0.26.1
3 months ago
0.26.0
3 months ago