feat: API Handlers

This commit is contained in:
Karan Sharma 2021-02-27 14:01:59 +05:30
parent b753631012
commit f389c9c876
8 changed files with 249 additions and 71 deletions

9
config-api-sample.toml Normal file
View file

@ -0,0 +1,9 @@
[server]
address = ":8080"
name = "doggo-api"
# WARNING If these timeouts are less than 1s,
# the server connection breaks.
read_timeout=7000
write_timeout=7000
keepalive_timeout=5000
max_body_size=10000