pomme/internal/api
Sam Therapy 3e839fdf5f
fix(api): 401 on bad auth
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-01-31 19:09:17 +01:00
..
api.go fix(api): 401 on bad auth 2023-01-31 19:09:17 +01:00
api_test.go make test JWT expire in a minute 2023-01-30 23:24:44 -05:00
auth.go added read DB path from config, add DB paths to sample config, added render library for JSON responses, removed plaintext password from User struct, made error handler funcs return json and their calls to include http.Request, and made API tests use httptest server 2023-01-30 19:49:52 -05:00
jwt.go make jwt expiration consistent with cookies 2023-01-20 10:10:27 -05:00
testhelper.go I <3 TESTS 2023-01-30 23:23:35 -05:00
users.go added read DB path from config, add DB paths to sample config, added render library for JSON responses, removed plaintext password from User struct, made error handler funcs return json and their calls to include http.Request, and made API tests use httptest server 2023-01-30 19:49:52 -05:00
zone.go I <3 TESTS 2023-01-30 23:23:35 -05:00