Servo.Routes (Tom Servo v0.1.0) View Source

REST Routes. Delegate action to Controller

Routes:

GET /bots

Get a list of all bots

GET /bots/:id

Get a single bot by :id

GET /pages/:name

Get an HTML page by name

POST /bots

Create a new bot by sending parameters

Parameter example: name=R2D2&type=Astro

DELETE requests are denied

GET /api/bots

Get list of bots as JSON data

POST /api/bots

Create a new bot by sending JSON

Link to this section Summary

Link to this section Functions