Commit graph

15 commits

Author SHA1 Message Date
5e8ba819bc 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
9412d8ec28 added user creation, login, and logout test. Linted. Go mod. Adding http.StatusOK const in a few places I noticed it was not in. 2023-01-28 23:39:26 -05:00
27fd45a1f9 documented rate limiting, added check if file already exists and error out if it does, and small swagger edits 2023-01-20 20:33:56 -05:00
4e11746c32 small doc fixes 2023-01-20 16:55:59 -05:00
c59553184a added swagger docs, turn nolintlint OFF, and documented API routes in Swagger 2023-01-20 16:53:11 -05:00
a22ad3ec37 added a handler function for common stuff like 500 error, and changed the auth failure handler. Added error handling in a few places. Unexported setDBMiddleware handler 2023-01-19 23:56:38 -05:00
a3230fbc72 fix login oppsie, fix zonefile query to check filename and username, and linting 2023-01-09 18:19:07 +00:00
e363c83009 if already logged in return on login func and generate cookie for newly created users -- ensure all redirect to index 2023-01-09 18:19:07 +00:00
53e8d01cb9 handle file upload, create temp file, write that request made to DB using user/zone_file relation in DB, do other shit I forgot, linting 2023-01-09 18:19:07 +00:00
c005016cb2 adding error returns or else bad things happen and adding max cookie age of 1 hr 2023-01-05 19:15:15 -05:00
ff24f2e713 fix error message 2022-12-31 13:31:37 -05:00
ec4a7ed396 fixed a big oops 2022-12-31 13:23:09 -05:00
c3c533558f linted, added a custom web server definition with timeouts, added new type of context key, and added linting to the makefile 2022-12-31 10:05:20 -05:00
11692efdd1 small response stuff 2022-12-30 23:22:44 -05:00
f469d20e06 move files around, make sure cookies work, and add logout 2022-12-30 23:15:09 -05:00