From 1452927209f4b813c07b15903a4a13dcb4983443 Mon Sep 17 00:00:00 2001 From: andrei Date: Wed, 30 Aug 2017 09:36:18 -0700 Subject: [PATCH] [http] fix a bug with creating/deleting pinned messages --- disco/api/http.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disco/api/http.py b/disco/api/http.py index 2950fcc..6cea9c5 100644 --- a/disco/api/http.py +++ b/disco/api/http.py @@ -59,8 +59,8 @@ class Routes(object): CHANNELS_INVITES_LIST = (HTTPMethod.GET, CHANNELS + '/invites') CHANNELS_INVITES_CREATE = (HTTPMethod.POST, CHANNELS + '/invites') CHANNELS_PINS_LIST = (HTTPMethod.GET, CHANNELS + '/pins') - CHANNELS_PINS_CREATE = (HTTPMethod.PUT, CHANNELS + '/pins/{pin}') - CHANNELS_PINS_DELETE = (HTTPMethod.DELETE, CHANNELS + '/pins/{pin}') + CHANNELS_PINS_CREATE = (HTTPMethod.PUT, CHANNELS + '/pins/{message}') + CHANNELS_PINS_DELETE = (HTTPMethod.DELETE, CHANNELS + '/pins/{message}') CHANNELS_WEBHOOKS_CREATE = (HTTPMethod.POST, CHANNELS + '/webhooks') CHANNELS_WEBHOOKS_LIST = (HTTPMethod.GET, CHANNELS + '/webhooks')