routes

package
v0.0.0-...-8a4e3a4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupRouter

func SetupRouter(db *models.DB) *gin.Engine

Types

type ShortService

type ShortService struct {
	Db models.Datastore
}

func (*ShortService) CreateShort

func (s *ShortService) CreateShort(ctx *gin.Context)

func (*ShortService) GetShort

func (s *ShortService) GetShort(ctx *gin.Context)

Jump to

Keyboard shortcuts

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