Update api.md

This commit is contained in:
William Mantly 2019-12-09 21:51:18 -05:00 committed by GitHub
parent 03d6973171
commit d3f559aeb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
api.md
View File

@ -26,7 +26,7 @@ curl -H "auth-token: 8eff4f16-086d-40fd-acbd-7634b9a36117" https://admin.rubyisf
**post** `/api/` **post** `/api/`
```bash ```bash
curl -H "Content-Type: application/json" -H "auth-token: 8eff4f16-086d-40fd-acbd-7634b9a36117" -X POST -d "{\"host\": \"yours.com\", \"ip\": \"127.0.0.1:4000\"}" https://admin.rubyisforpussys.com/api/ curl -H "Content-Type: application/json" -H "auth-token: 8eff4f16-086d-40fd-acbd-7634b9a36117" -X POST -d '{"host": "yours.com", "ip": "127.0.0.1:4000", "forceSSL": true}' https://admin.rubyisforpussys.com/api/
``` ```
* 200 {"message":"Host yours.com Added"} * 200 {"message":"Host yours.com Added"}