4
1
Fork 0

Documented flags

pull/24/head
UnicodingUnicorn 2019-02-06 11:38:10 +08:00
parent e4ce8ee2d8
commit 50497125d4
1 changed files with 9 additions and 0 deletions

View File

@ -12,6 +12,15 @@ migrate -database cockroach://root@localhost:26257/core?sslmode=disable -source
go build && ./core
```
## Flags
Flags are supplied to the compiled go program in the form ```-flag=stuff```.
| Flag | Description | Default |
| ---- | ----------- | ------- |
| listen | Port number to listen on | 8080 |
| postgres | URL of Postgres | postgresql://root@localhost:26257/core?sslmode=disable |
## API
Unless otherwise noted, bodies and responses are with ```Content-Type: application/json```.