Oleksiy Petrenko | 777d782 | 2018-11-06 13:32:44 +0200 | [diff] [blame] | 1 | from designatev2.common import send |
2 | |||||
3 | try: | ||||
4 | from urllib.parse import urlencode | ||||
5 | except ImportError: | ||||
6 | from urllib import urlencode | ||||
7 | |||||
8 | |||||
9 | @send('get') | ||||
10 | def zone_list(**kwargs): | ||||
11 | url = '/zones?{}'.format(urlencode(kwargs)) | ||||
12 | return url, None |