misc

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

README

routes/misc

HTTP route handlers that don't fit in other categories. Provides a catch-all 404 handler that returns the unmatched path and HTTP method as JSON, along with a suggestion list of registered routes similar to the one requested.

An endpoint serving the parsed API configuration was removed deliberately and should not be reintroduced without authentication in front of it: the config carries every userlist's credentials in plaintext along with the sink passwords, so serving it is handing out the competition.

The handler here touches no database and stays available when no sink is configured.

Documentation

Overview

Package misc contains routes that don't belong in other categories. This includes error routes and API config routes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoRoute

func NoRoute(router *gin.Engine) func(c *gin.Context)

NoRoute responds with a 404 when no other route is matched. Provides the user a list of "similar" endpoints available. This is helpful while manually testing. To be fully accurate, this needs to be the last route registered on the server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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