DoSomething / bertly

🔗 A serverless link shortener.
https://dosome.click/wq544
MIT License
2 stars 1 forks source link

Add `GET <key>/clicks` route. #23

Closed DFurnes closed 6 years ago

DFurnes commented 6 years ago

This pull request adds a GET <key>/clicks route to see how many clicks a given short-link has. This will be used by Phoenix's new "Social Drive Action" to show users how many people have used their voter registration link!

Closes #20.

screen shot 2018-05-31 at 10 58 32 am

mshmsh5000 commented 6 years ago

Looks purty!

There's no index on Click.shortened. What do you think about adding an index to that as a migration in this PR?

DFurnes commented 6 years ago

Rebased against master to get the fixes in #22.

DFurnes commented 6 years ago

Added an index to shortened in 9372118!

mshmsh5000 commented 6 years ago

C'est hyper-cool! 👍