]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/secure.ts
Type functions
[github/Chocobozzz/PeerTube.git] / server / middlewares / secure.ts
index bd7cfa918159247bb5ef0c70f3b1eb5ae6b6a826..fbfd08c7b4cb7c44a410dd923b4164a3a948477d 100644 (file)
@@ -1,10 +1,13 @@
+import 'express-validator'
+import * as express from 'express'
+
 import { database as db } from '../initializers'
 import {
   logger,
   checkSignature as peertubeCryptoCheckSignature
 } from '../helpers'
 
-function checkSignature (req, res, next) {
+function checkSignature (req: express.Request, res: express.Response, next: express.NextFunction) {
   const host = req.body.signature.host
   db.Pod.loadByHost(host, function (err, pod) {
     if (err) {