diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-12 16:41:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-16 10:33:27 +0200 |
commit | fd3c2e87051f5029cdec39d877b576a62f48e219 (patch) | |
tree | a3c657f178702a3363af680ed8ffb7cd038243b8 /server/controllers/api/index.ts | |
parent | 0e6cd1c00f71554fe7375a96db693a6983951ba6 (diff) | |
download | PeerTube-fd3c2e87051f5029cdec39d877b576a62f48e219.tar.gz PeerTube-fd3c2e87051f5029cdec39d877b576a62f48e219.tar.zst PeerTube-fd3c2e87051f5029cdec39d877b576a62f48e219.zip |
Add playback metric endpoint sent to OTEL
Diffstat (limited to 'server/controllers/api/index.ts')
-rw-r--r-- | server/controllers/api/index.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/controllers/api/index.ts b/server/controllers/api/index.ts index 8c8ebd061..e1d197c8a 100644 --- a/server/controllers/api/index.ts +++ b/server/controllers/api/index.ts | |||
@@ -11,6 +11,7 @@ import { bulkRouter } from './bulk' | |||
11 | import { configRouter } from './config' | 11 | import { configRouter } from './config' |
12 | import { customPageRouter } from './custom-page' | 12 | import { customPageRouter } from './custom-page' |
13 | import { jobsRouter } from './jobs' | 13 | import { jobsRouter } from './jobs' |
14 | import { metricsRouter } from './metrics' | ||
14 | import { oauthClientsRouter } from './oauth-clients' | 15 | import { oauthClientsRouter } from './oauth-clients' |
15 | import { overviewsRouter } from './overviews' | 16 | import { overviewsRouter } from './overviews' |
16 | import { pluginRouter } from './plugins' | 17 | import { pluginRouter } from './plugins' |
@@ -18,9 +19,9 @@ import { searchRouter } from './search' | |||
18 | import { serverRouter } from './server' | 19 | import { serverRouter } from './server' |
19 | import { usersRouter } from './users' | 20 | import { usersRouter } from './users' |
20 | import { videoChannelRouter } from './video-channel' | 21 | import { videoChannelRouter } from './video-channel' |
22 | import { videoChannelSyncRouter } from './video-channel-sync' | ||
21 | import { videoPlaylistRouter } from './video-playlist' | 23 | import { videoPlaylistRouter } from './video-playlist' |
22 | import { videosRouter } from './videos' | 24 | import { videosRouter } from './videos' |
23 | import { videoChannelSyncRouter } from './video-channel-sync' | ||
24 | 25 | ||
25 | const apiRouter = express.Router() | 26 | const apiRouter = express.Router() |
26 | 27 | ||
@@ -48,6 +49,7 @@ apiRouter.use('/video-channel-syncs', videoChannelSyncRouter) | |||
48 | apiRouter.use('/video-playlists', videoPlaylistRouter) | 49 | apiRouter.use('/video-playlists', videoPlaylistRouter) |
49 | apiRouter.use('/videos', videosRouter) | 50 | apiRouter.use('/videos', videosRouter) |
50 | apiRouter.use('/jobs', jobsRouter) | 51 | apiRouter.use('/jobs', jobsRouter) |
52 | apiRouter.use('/metrics', metricsRouter) | ||
51 | apiRouter.use('/search', searchRouter) | 53 | apiRouter.use('/search', searchRouter) |
52 | apiRouter.use('/overviews', overviewsRouter) | 54 | apiRouter.use('/overviews', overviewsRouter) |
53 | apiRouter.use('/plugins', pluginRouter) | 55 | apiRouter.use('/plugins', pluginRouter) |