routes

package
v0.0.0-...-25378f3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewTodoEndPoint

func CreateNewTodoEndPoint(res http.ResponseWriter, req *http.Request)

CreateNewTodoEndPoint to create a new Todo

func DeleteTodoEndPoint

func DeleteTodoEndPoint(res http.ResponseWriter, req *http.Request)

DeleteTodoEndPoint to delete a Todo from the database

func IndexEndPoint

func IndexEndPoint(res http.ResponseWriter, req *http.Request)

IndexEndPoint for the home/index page

func TimeSpentEndPoint

func TimeSpentEndPoint(res http.ResponseWriter, req *http.Request)

TimeSpentEndPoint add timepent to a givent Todo

func TodoDetailEndPoint

func TodoDetailEndPoint(res http.ResponseWriter, req *http.Request)

TodoDetailEndPoint to show the details of a Todo

func UpdateTodoEndPoint

func UpdateTodoEndPoint(res http.ResponseWriter, req *http.Request)

UpdateTodoEndPoint to update the Todo

Types

type IndexPageData

type IndexPageData struct {
	Todos []models.Todo
}

IndexPageData the list of Todos to display on the index page

Jump to

Keyboard shortcuts

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