camper/pkg/app
jordi fita mas 9fccd5f81d Acquire the database connection in App.ServeHTTP with cookie set
Almost all request will need the database connection, either because
they will perform queries or because they need to check if the user is
logged in, for instance, so it should be acquired as far above as
possible to avoid acquiring multiple connections.

This is specially true since i have to pass the cookie to the database
to switch role and set request.user.email and request.user.cookie
config variables.  I do not want to do that many times per request.
2023-07-26 00:48:58 +02:00
..
app.go Acquire the database connection in App.ServeHTTP with cookie set 2023-07-26 00:48:58 +02:00
login.go Acquire the database connection in App.ServeHTTP with cookie set 2023-07-26 00:48:58 +02:00