vitaly-t/pg-promise-demo

Do not however reuse any of the HTTP-service code

osseonews opened this issue · 1 comments

Can you please explain what mean by: "Do not however reuse any of the HTTP-service code, it is over-simplified, for the test, not for you to copy."

We were thinking of using this demo as a type skeleton for our DB project, and were not clear what you meant about the http-service code. Thanks.

Why didn't you quote the whole thing? It explains it to you right there...

/////////////////////////////////////////////////////////////////////////////
// IMPORTANT:
//
// Do not re-use the HTTP-service part of the code from here!
// It is an over-simplified HTTP service with just GET handlers, because:
//
// 1. This demo is to be tested by typing URL-s manually in the browser;
// 2. The focus here is on a proper database layer only, not an HTTP service.
/////////////////////////////////////////////////////////////////////////////