File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import jwt from "jsonwebtoken";
11
11
import { buildTasksRouter } from "./routers/tasks" ;
12
12
import { loggerOptions } from "./logging" ;
13
13
import responseTime from "response-time" ;
14
+ import buildStatsRouter from "./routers/stats" ;
14
15
15
16
export const createApp = ( ) => {
16
17
const app = express ( ) ;
@@ -55,6 +56,7 @@ export const createApp = () => {
55
56
// use auth router
56
57
app . use ( buildAuthRouter ( ) ) ;
57
58
app . use ( buildTasksRouter ( ) ) ;
59
+ app . use ( buildStatsRouter ( ) ) ;
58
60
59
61
return { app } ;
60
62
} ;
Original file line number Diff line number Diff line change
1
+ import express from "express" ;
2
+
3
+ export default function buildStatsRouter ( ) {
4
+ const router = express . Router ( ) ;
5
+
6
+ router . get ( "/" , async ( _ , res ) => {
7
+ return res . send ( {
8
+ up : true ,
9
+ } ) ;
10
+ } ) ;
11
+ return router ;
12
+ }
You can’t perform that action at this time.
0 commit comments