def __init__(self, name, base, attrs):
    if (name == 'ApiService'):
        pass
    else:
        route = ((('/' + self.app) + '/') + self.resource)
        if self.resource:
            route += '/'
        routes[route] = {'cls': self}
def __init__(self, name, base, attrs):
    if (name == 'ApiService'):
        pass
    else:
        route = ((('/' + self.app) + '/') + self.resource)
        if self.resource:
            route += '/'
        routes[route] = {'cls': self}