Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 381 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 381 Bytes

tinyurl

Todo

  • refactor
  • Logging
  • benchmark
  • profile
  • simple attack defense

How to use

  • create database table using db.sql
  • cp config.sample.toml config.toml
  • config the setting with your own environment
  • go run .
  • curl -X POST -d 'url=TargetHost' http://localhost:8080/link/create, and get the shorturl
  • visit the short url and will redirect to the TargetHost