v3b6a7t / typescript-restful

RESTful Web Services with NodeJS and Express
MIT License
0 stars 0 forks source link

Additional models should be created #5

Open v3b6a7t opened 4 years ago

v3b6a7t commented 4 years ago

At this point need to add two models like writer (or author) and borrow books.

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));