From f769dc7b006dd3d896729344a5f67fb74dc6786e Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 5 Jan 2014 23:09:08 +0100 Subject: go: redirect with 302 --- go/README | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'go/README') diff --git a/go/README b/go/README index 0f9de490..0434335a 100644 --- a/go/README +++ b/go/README @@ -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 -- cgit v1.2.3