api

package
v0.0.0-...-aec8730 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	BaseRoutes *Routes
}

func Init

func Init(root *mux.Router, database *gorm.DB) *API

func (*API) InitAuthors

func (api *API) InitAuthors()

func (*API) InitBooks

func (api *API) InitBooks()

type Routes

type Routes struct {
	Root    *mux.Router
	ApiRoot *mux.Router

	Books  *mux.Router
	Author *mux.Router
}

Jump to

Keyboard shortcuts

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