Open v3b6a7t opened 4 years ago
At this point need to add two models like writer (or author) and borrow books.
writer
borrow
https://github.com/v3b6a7t/typescript-restful/blob/4b9a0364187c0fdaf87749e69e0d0cdacfe0caf4/api/index.ts#L16
// For exemple app.use('/api/authors', await genericRouter<typeof Author>(Author)); app.use('/api/borrow', await genericRouter<typeof Borrow>(Borrow));
At this point need to add two models like
writer
(or author) andborrow
books.https://github.com/v3b6a7t/typescript-restful/blob/4b9a0364187c0fdaf87749e69e0d0cdacfe0caf4/api/index.ts#L16