Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateShortURL ¶
CreatShortURL godoc @Summary 建立短網址 @Description 藉由 timestamp 轉 base62 的方式產生 unique ID 來作為短網址的 ID @Tags short @Accept json @Produce json @Param url body string true "Original URL" @Success 200 {object} createShortURLResponsePayload @Router /short [post]
func GetShortIDRediect ¶
GetShortIDRediect godoc @Summary Redirect by short ID @Description Use 301 redirect by short ID @Tags short @Accept json @Produce json @Param shortID path string true "shortID redirect use" @Router /{shortID} [get]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.