UNPKG

@getanthill/datastore

Version:

Event-Sourced Datastore

15 lines (9 loc) 289 B
import express from 'express'; import { Services } from '../../typings'; import { aggregate } from './controllers'; function routes(services: Services) { const app = express.Router({ mergeParams: true }); app.post('/', aggregate(services)); return app; } export default routes;