fix unused var

Signed-off-by: Vincenzo Scamporlino <me@vinzscam.dev>
This commit is contained in:
Vincenzo Scamporlino
2022-04-26 11:48:12 +02:00
committed by Joon Park
parent 74c70f99d5
commit 7f484f4960
2 changed files with 3 additions and 2 deletions
@@ -85,7 +85,8 @@ So far we've only used the `PermissionEvaluator.authorize` method, which will ev
+ const transformConditions: ConditionTransformer<TodoFilter> = createConditionTransformer(Object.values(rules));
router.get('/todos', async (req, res) => {
- router.get('/todos', async (_req, res) => {
+ router.get('/todos', async (req, res) => {
+ const token = getBearerTokenFromAuthorizationHeader(
+ req.header('authorization'),
+ );
@@ -43,7 +43,7 @@ export async function createRouter(
response.send({ status: 'ok' });
});
router.get('/todos', async (req, res) => {
router.get('/todos', async (_req, res) => {
res.json(getAll());
});