9 lines
289 B
Python
9 lines
289 B
Python
from risotto.controller import Controller
|
|
from risotto.register import register
|
|
|
|
|
|
class Risotto(Controller):
|
|
@register('v1.server.list', None)
|
|
async def server_list(self):
|
|
return [{'server_id': 3, 'servername': 'one', 'serverdescription': 'the first', 'servermodelid': 1}]
|