tiny 88x31 lexicon for atproto
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

probably a better way of doing things

+2 -2
+1 -1
handler/handler.go
··· 37 37 mux.HandleFunc("GET /upload", h.oauthMiddleware(getupload)) 38 38 mux.HandleFunc("POST /upload", h.oauthMiddleware(h.upload)) 39 39 mux.HandleFunc("POST /like", h.oauthMiddleware(h.like)) 40 - mux.HandleFunc("DELETE /like", h.oauthMiddleware(h.unlike)) 40 + mux.HandleFunc("POST /unlike", h.oauthMiddleware(h.unlike)) 41 41 mux.HandleFunc("GET /button", h.oauthMiddleware(h.getbutton)) 42 42 mux.HandleFunc("GET /xrpc/store.88x31.getButton", h.WithCORS(h.getButton)) 43 43 mux.HandleFunc("GET /xrpc/store.88x31.getButtons", h.WithCORS(h.getButtons))
+1 -1
tmpl/button.html
··· 2 2 {{template "buttonpart" .Button}} 3 3 {{if .DID}} 4 4 {{if .Button.Liked}} 5 - <form action="/like" method="DELETE"> 5 + <form action="/unlike" method="POST"> 6 6 <input type="text" name="uri" value="{{.Button.URI}}" hidden /> 7 7 <input type="text" name="cid" value="{{.Button.CID}}" hidden /> 8 8 <input type="submit" value='un-"like"'/>