Add REST API. Refactor config logic.

The REST API is simply a wrapper around the command line (and actually
invokes the command line). It relies on the command line tool validating
its input.

Currently only the `/list` endpoint is implemented, exposing the `list`
command.
This commit is contained in:
Jonathan Bernard
2018-05-18 16:06:58 -05:00
parent 6f247032a3
commit 29959a6a8d
6 changed files with 246 additions and 67 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.sw*
nimcache/
/pit
/pit_api