Documentation
¶
Overview ¶
Package routes contains all of the Gin HTTP API logic. This is includes which functions are responsible for which paths and methods, user input parsing and validation, as well as request logging and error handling. Most Gin handler functions are located in subpackages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
RegisterRoutes registers all API routes on router. Called by initRoutes and tests. Routes that require the db are replaced with 501 not implemented.
func ServeRoutes ¶
func ServeRoutes(cfg *config.APIConfigSpec) error
ServeRoutes generates an HTTP router and starts listening! Requires the config to be loaded.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package graphs contains routes that generate html/js graphs that can be embedded into other pages.
|
Package graphs contains routes that generate html/js graphs that can be embedded into other pages. |
|
Package misc contains routes that don't belong in other categories.
|
Package misc contains routes that don't belong in other categories. |
|
Package scoring contains all the routes involving scorechecks.
|
Package scoring contains all the routes involving scorechecks. |
|
Package users contains all the API routes involving scoring users.
|
Package users contains all the API routes involving scoring users. |
Click to show internal directories.
Click to hide internal directories.