Reverting wrong URL patterns in poc. Going back to commit e588785dd1
This commit is contained in:
@@ -315,18 +315,12 @@ def kapow():
|
||||
"""Start aiohttp app."""
|
||||
app = web.Application(client_max_size=1024**3)
|
||||
app.add_routes([
|
||||
# TODO: Servers
|
||||
|
||||
# Routes
|
||||
web.get('/kapow/routes', get_routes),
|
||||
web.post('/kapow/routes', create_route),
|
||||
# web.put('/kapow/routes', insert_route),
|
||||
web.delete('/kapow/routes/{id}', delete_route),
|
||||
|
||||
# Handlers
|
||||
web.get('/kapow/handlers/{id}/{field:.*}', get_field),
|
||||
web.get('/kapow/connections/{id}/{field:.*}', get_field),
|
||||
# web.post('/kapow/connections/{id}/{field:.*}', append_field),
|
||||
web.put('/kapow/handlers/{id}/{field:.*}', set_field),
|
||||
web.put('/kapow/connections/{id}/{field:.*}', set_field),
|
||||
])
|
||||
app.on_startup.append(start_background_tasks)
|
||||
web.run_app(app)
|
||||
|
||||
Reference in New Issue
Block a user