Sida Chen
c6f0eaa3c8
api: fix remote addr shows reverse proxy addr problem
...
Uses the first ip addr in X-forwarded-for as the client's remote addr if it exists
otherwise, fall back to use default http.Request.RemoteAddr
2017-06-16 10:08:58 -04:00
Sida Chen
9306e99368
converted to structured logging by using logrus
...
changed from capnslog to logrus for logging JSON structured message.
finished issue #383
2017-05-04 13:59:57 -04:00
Jimmy Zelinskie
6a569fd945
move config to main / decentralize config
...
This puts config in its relevant location and moves functions around
loading config files into the main package.
As a side effect of removing cyclic imports for the API config, the
context library is no longer used.
2017-01-27 00:36:13 -05:00
liangchenye
a541e964e0
New API: list vulnerabilities by namespace
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
2016-03-07 14:07:07 +08:00
Jimmy Zelinskie
2d8d9ca401
api: finish initial work on v1 API
2016-02-24 16:36:45 -05:00
Jimmy Zelinskie
c05848e32d
api: implement put vulnerability
2016-02-24 16:36:45 -05:00
Quentin Machu
6b3f95dc03
api: fix /v1 router and some status codes
2016-02-24 16:34:54 -05:00
Jimmy Zelinskie
822ac7ab4c
api: add initial work on the new API
2016-02-24 16:34:54 -05:00