Indicate path for api requests

merge-requests/30/head
Bob Mottram 2021-10-12 12:56:49 +01:00
parent 598b27e196
commit 0dd0cf916d
1 changed files with 9 additions and 9 deletions

View File

@ -145,31 +145,31 @@ def mastoApiV1Response(path: str, callingDomain: str,
if path.startswith('/api/v1/blocks'): if path.startswith('/api/v1/blocks'):
sendJson = [] sendJson = []
sendJsonStr = 'masto API instance blocks sent' sendJsonStr = 'masto API instance blocks sent ' + path
elif path.startswith('/api/v1/favorites'): elif path.startswith('/api/v1/favorites'):
sendJson = [] sendJson = []
sendJsonStr = 'masto API favorites sent' sendJsonStr = 'masto API favorites sent ' + path
elif path.startswith('/api/v1/follow_requests'): elif path.startswith('/api/v1/follow_requests'):
sendJson = [] sendJson = []
sendJsonStr = 'masto API follow requests sent' sendJsonStr = 'masto API follow requests sent ' + path
elif path.startswith('/api/v1/mutes'): elif path.startswith('/api/v1/mutes'):
sendJson = [] sendJson = []
sendJsonStr = 'masto API mutes sent' sendJsonStr = 'masto API mutes sent ' + path
elif path.startswith('/api/v1/notifications'): elif path.startswith('/api/v1/notifications'):
sendJson = [] sendJson = []
sendJsonStr = 'masto API notifications sent' sendJsonStr = 'masto API notifications sent ' + path
elif path.startswith('/api/v1/reports'): elif path.startswith('/api/v1/reports'):
sendJson = [] sendJson = []
sendJsonStr = 'masto API reports sent' sendJsonStr = 'masto API reports sent ' + path
elif path.startswith('/api/v1/statuses'): elif path.startswith('/api/v1/statuses'):
sendJson = [] sendJson = []
sendJsonStr = 'masto API statuses sent' sendJsonStr = 'masto API statuses sent ' + path
elif path.startswith('/api/v1/timelines'): elif path.startswith('/api/v1/timelines'):
sendJson = [] sendJson = []
sendJsonStr = 'masto API timelines sent' sendJsonStr = 'masto API timelines sent ' + path
elif path.startswith('/api/v1/custom_emojis'): elif path.startswith('/api/v1/custom_emojis'):
sendJson = customEmoji sendJson = customEmoji
sendJsonStr = 'masto API custom emojis sent' sendJsonStr = 'masto API custom emojis sent ' + path
adminNickname = getConfigParam(baseDir, 'admin') adminNickname = getConfigParam(baseDir, 'admin')
if adminNickname and path == '/api/v1/instance': if adminNickname and path == '/api/v1/instance':