summaryrefslogtreecommitdiff
path: root/bucky/app
diff options
context:
space:
mode:
Diffstat (limited to 'bucky/app')
-rw-r--r--bucky/app/api.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/bucky/app/api.js b/bucky/app/api.js
index 5635ce9..b3540ae 100644
--- a/bucky/app/api.js
+++ b/bucky/app/api.js
@@ -45,13 +45,21 @@ function route (app){
app.get("/api/index",
bucky.ensureLastlog,
middleware.ensureAuthenticated,
+ (req,res,next) => {console.log('uthed'); next()},
bucky.ensureLatestThreads,
+ (req,res,next) => {console.log('lat'); next()},
bucky.filterPrivateThreads,
+ (req,res,next) => {console.log('priv'); next()},
bucky.ensureCommentCountsForThreads,
+ (req,res,next) => {console.log('com'); next()},
bucky.ensureFileCountsForThreads,
+ (req,res,next) => {console.log('fil'); next()},
bucky.ensureKeywordsForThreads,
+ (req,res,next) => {console.log('keyz'); next()},
bucky.ensureHootbox,
+ (req,res,next) => {console.log('hootz'); next()},
bucky.bumpLastSeen,
+ (req,res,next) => {console.log('done'); next()},
function(req, res){
res.json({
threads: res.threads,