handlers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDBHandler

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

CheckDBHandler handles a GET request to check if the database is alive. It returns a json response with the status of the database (up or down)

func ChoreHandler

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

ChoreHandler handles a request to add, delete, or edit a chore.

func ChoresHandler

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

ChoresHandler handles a GET request to retrieve all chores from the database

func SwaggerSpecHandler

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

SwaggerSpecHandler handles a GET request to serve the swagger config file

Types

This section is empty.

Jump to

Keyboard shortcuts

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