handlers

package
v0.0.0-...-de2f53b Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiMux

func NewApiMux(c *ApiMuxConfig) *mux.Router

NewApiMux creates and returns a new mux.Router configured with version 1 (v1) routes.

Types

type ApiMuxConfig

type ApiMuxConfig struct {
	Db  *sql.DB
	Log *slog.Logger
}

ApiMuxConfig struct holds the configuration for the API.

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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