Commit c917ac5f by edems

StoragesController added

parent 6df75986
from aiohttp import web
class StoragesController:
@staticmethod
def add_routes(app):
app.add_routes([
web.get('/storages', StoragesController.list),
web.post('/storages/create', StoragesController.create),
web.get('/storages/{storage}', StoragesController.get),
web.delete('/storages/{storage}/delete', StoragesController.delete)
])
@staticmethod
async def create(request):
return web.Response(text='Create')
@staticmethod
async def list(request):
return web.Response(text='List')
@staticmethod
async def get(request):
return web.Response(text='Get')
@staticmethod
async def delete(request):
return web.Response(text='Delete')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment