committed by
Joon Park
parent
74c70f99d5
commit
7f484f4960
@@ -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());
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user