evilsocket
d09eec3535
misc: small fix or general refactoring i did not bother commenting
2018-03-13 14:41:37 +01:00
evilsocket
cc01a99579
refact: refactored api.rest controller
2018-03-13 13:57:52 +01:00
KhasMek
4b8d4aeb1b
api: switch request router and add more paths
...
This switches the url router to gorilla and
adds the following routes.
- /api/events
- /api/session
- /api/session/ble
- /api/session/ble/{mac}
- /api/session/env
- /api/session/gateway
- /api/session/interface
- /api/session/lan
- /api/session/lan/{mac}
- /api/session/options
- /api/session/packets
- /api/session/started-at
- /api/session/wifi
- /api/session/wifi/{mac}
where {mac} is the mac address of a device.
2018-03-12 18:42:32 -06:00
evilsocket
5e6741d544
fix: /api/events n parameter did not work as expected ( fixes #158 )
2018-03-07 18:39:31 +01:00
evilsocket
5ad1a17118
new: implemented optional websocket for /api/events
2018-03-06 13:54:37 +01:00
evilsocket
b243e67828
some progress but still doesn't work
2018-03-01 19:30:10 +01:00
evilsocket
894cbe76a1
refact: refactored api.rest to avoid using global variables
2018-03-01 18:06:42 +01:00
evilsocket
63cea73f8e
misc: small fix or general refactoring i did not bother commenting
2018-02-23 00:07:09 +01:00
evilsocket
1728ed63f1
refact: we got rid of huge GIN dependency by using core golang libs for api.rest module
2018-02-22 16:59:23 +01:00
evilsocket
bec98e3d1f
misc: small fix or general refactoring i did not bother commenting
2018-02-22 15:43:32 +01:00
evilsocket
5d3381fc76
fix: make sure events are sorted
2018-01-29 14:20:24 +01:00
evilsocket
4f1c508a7c
refact: refactored api.rest utility functions into separate file.
2018-01-17 17:04:15 +01:00
evilsocket
d14bd6fc1c
balls
2018-01-14 15:13:43 +01:00
evilsocket
fd18dffd1a
refact: refactored api.rest module to use GIN and have better security ( fixes #11 )
2018-01-14 15:10:11 +01:00