Add lite website (#73)

Reviewed-on: #73
This commit was merged in pull request #73.
This commit is contained in:
2025-05-24 06:11:39 +02:00
parent 93ec3cbc19
commit 426e456ba7
7 changed files with 376 additions and 48 deletions

View File

@@ -592,6 +592,9 @@ func start(ctx context.Context, config *ServerConfig) {
corsConfig.AllowAllOrigins = true
router.Use(cors.New(corsConfig))
// Web endpoints
loadWebEndpoints(router)
// API endpoints
router.GET("/api/users", getUsers)
router.GET("/api/user/:userId", getUser)
router.POST("/api/user/:userId/history", postHistory)