@ln-markets/sdk
Version:
TypeScript SDK for LNMarkets API v2
12 lines (9 loc) • 351 B
text/typescript
import type { RestFetcher } from '../../rest.js'
import { createGetAllNotifications } from './get-all.js'
import { createMarkAllAsRead } from './mark-all-as-read.js'
export const createNotificationsRouter = (request: RestFetcher) => {
return {
getAll: createGetAllNotifications(request),
markAllAsRead: createMarkAllAsRead(request),
}
}