mirror of
https://github.com/wahyd4/golink.git
synced 2026-08-08 21:01:05 +10:00
3b87ecf59dde6c02a0e49e9895b2380cccc95bf9
after successfully saving a golink, return an HTML response only if the request indicates it can accept text/html, otherwise return JSON. This allows for a very simple API: % curl -d short=foo -d long=http://foo.com/ go {"Short":"foo","Long":"http://foo.com/" ... } Change-Id: I32e9c028207c5c7b8741d7dd31ebed35cf38a1de
Languages
Go
46.6%
CSS
30.4%
HTML
16.2%
Nix
4.2%
JavaScript
1.6%
Other
1%