Skip to content

Commit 68f6754

Browse files
committed
Add Stats route
1 parent 8810ff1 commit 68f6754

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

handlers/FileHandler.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,3 +641,8 @@ func FileHandler(handlerData web.HandlerData, w http.ResponseWriter, r *http.Req
641641

642642
return nil
643643
}
644+
645+
// Stats for user
646+
func Stats(handlerData web.HandlerData, w http.ResponseWriter, r *http.Request) error {
647+
return nil
648+
}

handlers/Router.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ var (
7575
HandlerFunc: Register,
7676
HandlerType: defaultRequest,
7777
},
78+
Route{
79+
Name: "stats",
80+
Pattern: "/user/stats",
81+
Method: GetMethod,
82+
HandlerFunc: Stats,
83+
HandlerType: sessionRequest,
84+
},
7885

7986
// Files
8087
Route{
@@ -146,7 +153,6 @@ var (
146153
HandlerFunc: NamespaceListHandler,
147154
HandlerType: sessionRequest,
148155
},
149-
// TODO add stats
150156
}
151157
)
152158

0 commit comments

Comments
 (0)