aboutsummaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/index.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/index.ts b/services/index.ts
index ce20901..8d77429 100644
--- a/services/index.ts
+++ b/services/index.ts
@@ -6,6 +6,7 @@ import Votes from './votes/votes.service';
import Auth from './auth/auth.service';
import tryAuthenticate from '../hooks/tryAuthenticate';
+import logging from '../hooks/logging';
export default (app: Application): void => {
app.configure(Auth);
@@ -17,6 +18,9 @@ export default (app: Application): void => {
app.hooks({
before: {
all: tryAuthenticate
+ },
+ after: {
+ all: logging
}
});
};