Brian Picciano
c4520f2c84
Automatically bridge gemini links to a gateway on http site
1 year ago
Brian Picciano
84c1322c44
Got a basic gemini server running
1 year ago
Brian Picciano
0bd8bd6f23
Slight cleanup in http package
1 year ago
Brian Picciano
4878495914
Don't check CSRF for manage and edit methods
1 year ago
Brian Picciano
7943865cc6
Move mediocregopher.com content to index of this site
1 year ago
Brian Picciano
1f3ae665ed
Introduce EDIT and MANAGE methods
...
All admin "index" pages are moved under MANAGE, so that we can have (for
example) and normal "GET /posts" page later which would replace the
current index page, and potentially corresponding pages for the other
categories.
The EDIT method replaces the old `?edit` pattern, which normalizes how
we differentiate page functionality generally.
1 year ago
Brian Picciano
4f01edb923
move src out of srv, clean up default.nix and Makefile
2 years ago
Brian Picciano
b1641d1af9
remove chat functionality completely
2 years ago
Brian Picciano
f365b09757
implemented draft publishing and removed New Posts link/capability
2 years ago
Brian Picciano
c3135306b3
drafts functionality added, needs a publish button still
2 years ago
Brian Picciano
76ff79f470
add admin page, and spruce up posts and assets
2 years ago
Brian Picciano
08811a6da7
Replace CSRF token checking with Referer checking
2 years ago
Brian Picciano
159638084e
Fix CSRF loading on static GET pages
2 years ago
Brian Picciano
4dc1683d3e
Serve mailing list finalize and unsubscribe endpoints
2 years ago
Brian Picciano
79452e7472
Re-arrange routes so that cache only applies to blog routes
2 years ago
Brian Picciano
fb905ad53c
Add in-memory cache to GET requests, purges on successful POSTs
2 years ago
Brian Picciano
1de0ab3b72
Define an actual middleware type, use that to set up API routes
2 years ago
Brian Picciano
034342421b
Simplify routes by moving formMiddleware to the global level
2 years ago
Brian Picciano
1181af0318
Don't use EDIT method, only POSTs should use alt methods
2 years ago
Brian Picciano
99f8c1188c
Add RSS feed generator
2 years ago
Brian Picciano
b4ca8853a9
Update http config names
2 years ago
Brian Picciano
1ffda21ae3
Implement ratelimit on authentications
2 years ago
Brian Picciano
ae1fa76efc
Rename follow.html to follow
2 years ago
Brian Picciano
af434077ef
Implement image macro for rendering images
2 years ago
Brian Picciano
16cfbd1915
Move static assets to within srv
2 years ago
Brian Picciano
3cdee89c96
Put post preview behind auth
2 years ago
Brian Picciano
09acb111a2
Rename api package to http
2 years ago
Brian Picciano
f69ed83de7
Add preview button to edit post page
2 years ago
Brian Picciano
2c4b617dde
Implement saving of new and edited posts
2 years ago
Brian Picciano
75044eef03
Implement edit post page
2 years ago
Brian Picciano
0bc0204f0b
Implement post deleting
2 years ago
Brian Picciano
1242be7cfe
Implement posts index page
2 years ago
Brian Picciano
5a99778187
Scatter render.go contents everywhere
2 years ago
Brian Picciano
3664286506
Actually use the auth middleware for assets routes
2 years ago
Brian Picciano
56530a8a66
Implement asset deletion and fix redirect logic
2 years ago
Brian Picciano
69de76cb32
Add asset file upload form, plus related necessary refactors
2 years ago
Brian Picciano
e406ad6e7c
Re-arrange how api endpoints are defined
2 years ago
Brian Picciano
7b7bdcf57a
Initial implementation of admin assets page
2 years ago
Brian Picciano
9a67ef9211
Add follow.html to v2
2 years ago
Brian Picciano
e742a2d6d5
Add BlogURL template function
2 years ago
Brian Picciano
0fdece68c0
Add /v2/assets/ handler, with resizing
2 years ago
Brian Picciano
e41ff2b897
Implement index handler
...
This involved re-arranging how templates are being parsed, slightly.
2 years ago
Brian Picciano
4c04177c05
Move template rendering logic into api package
2 years ago
Brian Picciano
7e87c09c50
Add /posts handler to api
2 years ago
Brian Picciano
eed10ce514
Fix various problems with the srv build
2 years ago
Brian Picciano
0277c02767
Get rid of loggerFatalError
2 years ago
Brian Picciano
34f44cb5d5
implementation of basic chat page which can show history and not much else
3 years ago
Brian Picciano
9343d2ea69
add chat handlers and only allow POST methods
3 years ago
Brian Picciano
15ae483fad
add CSRF checking
3 years ago
Brian Picciano
a9d8aa2591
implemented basic userID generation
3 years ago