mirror of
https://codeberg.org/readeck/readeck.git
synced 2026-06-18 11:04:36 +00:00
- 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)
23 lines
496 B
Go
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))
|
|
}
|