router

package
v0.0.0-...-0ed4690 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package router sets up and handles the chi routes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeartBeat

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

A basic heart beat check to show if the endpoints are basically functional.

func ListSystemGames

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

Given a system, outputs all games for it.

func ListSystems

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

Outputs a list of available systems.

func Routes

func Routes() *chi.Mux

Creates a chi router, sets up the paths on it, and returns the router.

Types

This section is empty.

Jump to

Keyboard shortcuts

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