diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-28 10:21:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-28 10:22:50 +0200 |
commit | 012580d98f489e599d44a9a2a0bdc892b9455a90 (patch) | |
tree | cd6d4abdbf43f4cd1c051ac49682b97c7b6dca92 /server/controllers/api/index.ts | |
parent | d6d96bed80700830063c6055969d2d2ff46c63c6 (diff) | |
download | PeerTube-012580d98f489e599d44a9a2a0bdc892b9455a90.tar.gz PeerTube-012580d98f489e599d44a9a2a0bdc892b9455a90.tar.zst PeerTube-012580d98f489e599d44a9a2a0bdc892b9455a90.zip |
Cleanup
We must not expose private actor objects to clients
Just make 2 GET requests on channel/accounts instead
Diffstat (limited to 'server/controllers/api/index.ts')
-rw-r--r-- | server/controllers/api/index.ts | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/server/controllers/api/index.ts b/server/controllers/api/index.ts index 9ffcf1337..28378654a 100644 --- a/server/controllers/api/index.ts +++ b/server/controllers/api/index.ts | |||
@@ -16,7 +16,6 @@ import { pluginRouter } from './plugins' | |||
16 | import { searchRouter } from './search' | 16 | import { searchRouter } from './search' |
17 | import { serverRouter } from './server' | 17 | import { serverRouter } from './server' |
18 | import { usersRouter } from './users' | 18 | import { usersRouter } from './users' |
19 | import { actorRouter } from './actor' | ||
20 | import { videoChannelRouter } from './video-channel' | 19 | import { videoChannelRouter } from './video-channel' |
21 | import { videoPlaylistRouter } from './video-playlist' | 20 | import { videoPlaylistRouter } from './video-playlist' |
22 | import { videosRouter } from './videos' | 21 | import { videosRouter } from './videos' |
@@ -41,7 +40,6 @@ apiRouter.use('/bulk', bulkRouter) | |||
41 | apiRouter.use('/oauth-clients', oauthClientsRouter) | 40 | apiRouter.use('/oauth-clients', oauthClientsRouter) |
42 | apiRouter.use('/config', configRouter) | 41 | apiRouter.use('/config', configRouter) |
43 | apiRouter.use('/users', usersRouter) | 42 | apiRouter.use('/users', usersRouter) |
44 | apiRouter.use('/actors', actorRouter) | ||
45 | apiRouter.use('/accounts', accountsRouter) | 43 | apiRouter.use('/accounts', accountsRouter) |
46 | apiRouter.use('/video-channels', videoChannelRouter) | 44 | apiRouter.use('/video-channels', videoChannelRouter) |
47 | apiRouter.use('/video-playlists', videoPlaylistRouter) | 45 | apiRouter.use('/video-playlists', videoPlaylistRouter) |