@amaui/models
v1.1.21
Published
Models
Downloads
177
Maintainers
Readme
Getting started
Add
yarn add @amaui/models
Use
import express from 'express';
import { Query, Response } from '@amaui/models';
async function route(req: express.Request, res: express.Response) {
const query = Query.fromRequest(req);
const response = await todoCollection.searchMany(query);
return res.status(200).json(Response.fromQuery(response));
}
// etc.
Dev
Install
yarn
Test
yarn test
Prod
Build
yarn build