From d9cbbe20741adeff76bea5c571eca339e03dd20b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 30 Mar 2024 18:32:54 -0500 Subject: [PATCH] /api/v1/relationships: requirePubkey --- src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index 853e1a0..c35a454 100644 --- a/src/app.ts +++ b/src/app.ts @@ -147,7 +147,7 @@ app.get('/api/v1/accounts/verify_credentials', requirePubkey, verifyCredentialsC app.patch('/api/v1/accounts/update_credentials', requirePubkey, updateCredentialsController); app.get('/api/v1/accounts/search', accountSearchController); app.get('/api/v1/accounts/lookup', accountLookupController); -app.get('/api/v1/accounts/relationships', relationshipsController); +app.get('/api/v1/accounts/relationships', requirePubkey, relationshipsController); app.post('/api/v1/accounts/:pubkey{[0-9a-f]{64}}/block', requirePubkey, blockController); app.post('/api/v1/accounts/:pubkey{[0-9a-f]{64}}/unblock', requirePubkey, unblockController); app.post('/api/v1/accounts/:pubkey{[0-9a-f]{64}}/follow', requirePubkey, followController);