Files
mayan-edms/mayan/apps/rest_api/classes.py
Michael Price 49bb7c879e Add root API showing the new endpoints.
Signed-off-by: Michael Price <loneviking72@gmail.com>
2018-04-01 20:00:38 -04:00

11 lines
203 B
Python

from __future__ import unicode_literals
class Endpoint(object):
def __init__(self, label):
self.label = label
@property
def url(self):
return '/api/{}/'.format(self.label)