import {
logger,
getMyPublicCert,
- getFormatedObjects
+ getFormattedObjects
} from '../../helpers'
import {
sendOwnedVideosToPod,
import {
PodInstance
} from '../../models'
-import { Pod as FormatedPod } from '../../../shared'
+import { Pod as FormattedPod } from '../../../shared'
const podsRouter = express.Router()
podsAddValidator,
addPods
)
-podsRouter.post('/makefriends',
+podsRouter.post('/make-friends',
authenticate,
ensureIsAdmin,
makeFriendsValidator,
setBodyHostsPort,
makeFriendsController
)
-podsRouter.get('/quitfriends',
+podsRouter.get('/quit-friends',
authenticate,
ensureIsAdmin,
quitFriendsController
function listPods (req: express.Request, res: express.Response, next: express.NextFunction) {
db.Pod.list()
- .then(podsList => res.json(getFormatedObjects<FormatedPod, PodInstance>(podsList, podsList.length)))
+ .then(podsList => res.json(getFormattedObjects<FormattedPod, PodInstance>(podsList, podsList.length)))
.catch(err => next(err))
}