httpapi

package
v2.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const API = "1.1"

API is the current API version

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	AppTitle string
	// contains filtered or unexported fields
}

Server represents shared resources

func NewServer

func NewServer(title string, db db.DB, auth auth.Auth, adminGroup string, sessionStore session.Store, files fs.FS, output io.Writer) *Server

NewServer returns a new server with the given resources

func (*Server) Router

func (s *Server) Router() http.Handler

Router returns a new router

Jump to

Keyboard shortcuts

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