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
7 years ago
Sida Chen
9306e99368
converted to structured logging by using logrus
...
changed from capnslog to logrus for logging JSON structured message.
finished issue #383
7 years ago
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.
7 years ago
liangchenye
a541e964e0
New API: list vulnerabilities by namespace
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
8 years ago
Jimmy Zelinskie
2d8d9ca401
api: finish initial work on v1 API
8 years ago
Jimmy Zelinskie
c05848e32d
api: implement put vulnerability
8 years ago
Quentin Machu
6b3f95dc03
api: fix /v1 router and some status codes
8 years ago
Jimmy Zelinskie
822ac7ab4c
api: add initial work on the new API
8 years ago