aboutsummaryrefslogtreecommitdiff
path: root/cmd/server/middleware.go
AgeCommit message (Collapse)AuthorFilesLines
2023-01-06Refactor routing and handlersMitchell Riedstra1-66/+70
We were building a new gorilla mux on each connection, change that to an *http.ServeMux and build it once for the lifetime of the application. Tell redis to only cache GET requests.
2022-12-03Add a couple handlers to serve up JSON and markdownMitchell Riedstra1-31/+1
2022-09-17More work on the editor and update the example site to utilize it.v0.0.18Mitchell Riedstra1-29/+85
2022-06-190.0.17a / Alpha. Introduce users and page editing.v0.0.17aMitchell Riedstra1-0/+142
Breaking changes: inc/base.html is now tpl/base.md by default. This can be overridden on the command line. 404.md is now tpl/404.md. This can be overridden with templatedirectory in the configuration file. Additional files: `auth.json` file that stores credentials and settings for authorization cookie. Further notes: This will likely receive some major updates and changes over the next few commits. The scaffolidng is now in place for user accounts, login handling, and page editing. It's all extremely basic at the moment, on the idea list: Listing of all markdown files File uploader and general content management Flags to turn on/off git integration for edits. Download / Upload of all markdown files as a backup/restore. It's of course, all subject to change.