diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-05-22 20:58:25 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-05-25 17:32:16 +0200 |
commit | e02643f32e4c97ca307f8fc5b69be79c40d70a3b (patch) | |
tree | b7f6269913cd5a0e4f26a9461a043deb0c168be0 /server/controllers/api/pods.ts | |
parent | 65fcc3119c334b75dd13bcfdebf186afdc580a8f (diff) | |
download | PeerTube-e02643f32e4c97ca307f8fc5b69be79c40d70a3b.tar.gz PeerTube-e02643f32e4c97ca307f8fc5b69be79c40d70a3b.tar.zst PeerTube-e02643f32e4c97ca307f8fc5b69be79c40d70a3b.zip |
Type models
Diffstat (limited to 'server/controllers/api/pods.ts')
-rw-r--r-- | server/controllers/api/pods.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/pods.ts b/server/controllers/api/pods.ts index 06dfd8295..4ff1f5d9f 100644 --- a/server/controllers/api/pods.ts +++ b/server/controllers/api/pods.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import express = require('express') | 1 | import express = require('express') |
2 | import { waterfall } from 'async' | 2 | import { waterfall } from 'async' |
3 | 3 | ||
4 | const db = require('../../initializers/database') | 4 | import { database as db } from '../../initializers/database' |
5 | import { CONFIG } from '../../initializers' | 5 | import { CONFIG } from '../../initializers' |
6 | import { | 6 | import { |
7 | logger, | 7 | logger, |
@@ -35,12 +35,12 @@ podsRouter.post('/makefriends', | |||
35 | ensureIsAdmin, | 35 | ensureIsAdmin, |
36 | makeFriendsValidator, | 36 | makeFriendsValidator, |
37 | setBodyHostsPort, | 37 | setBodyHostsPort, |
38 | makeFriends | 38 | makeFriendsController |
39 | ) | 39 | ) |
40 | podsRouter.get('/quitfriends', | 40 | podsRouter.get('/quitfriends', |
41 | authenticate, | 41 | authenticate, |
42 | ensureIsAdmin, | 42 | ensureIsAdmin, |
43 | quitFriends | 43 | quitFriendsController |
44 | ) | 44 | ) |
45 | 45 | ||
46 | // --------------------------------------------------------------------------- | 46 | // --------------------------------------------------------------------------- |