diff options
author | tv <tv@nomic.retiolum> | 2014-01-05 23:09:08 +0100 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2014-01-05 23:09:08 +0100 |
commit | f769dc7b006dd3d896729344a5f67fb74dc6786e (patch) | |
tree | cc326ea223e8ffa6b0c3cc25bf19fc795b1963da /go/README | |
parent | e0bd4306d7f2284058b0f0910cf4e84e7c78b4f9 (diff) |
go: redirect with 302
Diffstat (limited to 'go/README')
-rw-r--r-- | go/README | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -7,7 +7,16 @@ go - minimalistic uri shortener npm install hiredis # run service - node . + PORT=1337 node . + +# add uri + curl -F uri=https://mywaytoolonguri http://localhost:1337 + + this will give you a relative shortened uri. + +# resolve uri + + curl http://localhost:1337/shortened-relative-uri # clear database |