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."""
|
"""Start aiohttp app."""
|
||||||
app = web.Application(client_max_size=1024**3)
|
app = web.Application(client_max_size=1024**3)
|
||||||
app.add_routes([
|
app.add_routes([
|
||||||
# TODO: Servers
|
|
||||||
|
|
||||||
# Routes
|
|
||||||
web.get('/kapow/routes', get_routes),
|
web.get('/kapow/routes', get_routes),
|
||||||
web.post('/kapow/routes', create_route),
|
web.post('/kapow/routes', create_route),
|
||||||
# web.put('/kapow/routes', insert_route),
|
|
||||||
web.delete('/kapow/routes/{id}', delete_route),
|
web.delete('/kapow/routes/{id}', delete_route),
|
||||||
|
web.get('/kapow/connections/{id}/{field:.*}', get_field),
|
||||||
# Handlers
|
|
||||||
web.get('/kapow/handlers/{id}/{field:.*}', get_field),
|
|
||||||
# web.post('/kapow/connections/{id}/{field:.*}', append_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)
|
app.on_startup.append(start_background_tasks)
|
||||||
web.run_app(app)
|
web.run_app(app)
|
||||||
|
|||||||
Reference in New Issue
Block a user