api

package
v0.0.0-...-f3d703e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetURL

func GetURL(w http.ResponseWriter, r *http.Request)

GetURL redirects to original url

func PostURL

func PostURL(w http.ResponseWriter, r *http.Request)

PostURL Creates a shortened url & saves it to redis

func URLRouter

func URLRouter() http.Handler

URLRouter handles creation & redirects

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL