5 Commits

Author SHA1 Message Date
Vic Demuzere
fd0fc59da6
Switch to structs instead of maps in api
Structs are slightly faster than maps, even though speed doesn't really
matter in this usecase. They're also clear documentation of the possible
json keys used in the API.
2021-09-07 12:20:33 +02:00
Vic Demuzere
d0f342e28a
Change Cache-Control on responses to no-store (#37) 2021-08-09 17:37:48 +02:00
Knut Ahlers
b51293fe3d
Handle json requests to create API
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-05-10 23:00:08 +02:00
Knut Ahlers
bcef1a1cce
Return 404 on not existent secret
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-08-03 18:20:21 +02:00
Knut Ahlers
9c81f9223f
Initial API
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-08-03 14:13:53 +02:00