Files
Olivier Meunier 3b6a674f87 Lint all the things!
- golangci-lint configuration
- gofumpt on all go files
- added package comments
- added missing comments on exported functions
- do not check for bodyclose on http testing responses.
- check for errors on triggered tasks
- check for errors in acls
- check for errors during policy loading
- check for errors in password recovery process
- better error checking in pkg/extract/contentscripts
- nolint rules for errcheck when it's not needed
  (mostly defer calls for file reader closing)
2023-11-28 20:26:05 +01:00

23 lines
496 B
Go

// SPDX-FileCopyrightText: © 2021 Olivier Meunier <olivier@neokraft.net>
//
// SPDX-License-Identifier: AGPL-3.0-only
// Package admin contains routes and tasks for Readeck admin.
package admin
import (
"codeberg.org/readeck/readeck/internal/server"
)
// SetupRoutes mounts the routes for the auth domain.
func SetupRoutes(s *server.Server) {
// API routes
api := newAdminAPI(s)
// API routes
s.AddRoute("/api/admin", api)
// Website views
s.AddRoute("/admin", newAdminViews(api))
}