basic jwt auth test

This commit is contained in:
2020-11-25 19:47:17 +01:00
parent 8e8aa774bc
commit 3a84cc8ef5
2 changed files with 27 additions and 0 deletions

10
src/routes/v1/test.ts Normal file
View File

@@ -0,0 +1,10 @@
import { Router } from "express";
import jwtauth from "../../middlewares/jwtauth";
const router = Router();
router.use("*", jwtauth, async (req, res, next) => {
return res.send("ok");
});
export default router;