Documentation
¶
Overview ¶
Package testutils provides test-only API endpoints. These routes are only registered when SHISHO_TEST_MODE=true.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(e *echo.Group, db *bun.DB, manager *plugins.Manager, installer *plugins.Installer, epubRoot string)
RegisterRoutes registers test-only routes. These endpoints should ONLY be registered in test environments. epubRoot is where POST /test/books writes EPUBs for withEpubOnDisk. It must belong to this server alone, because DELETE /test/ereader removes it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.