update
This commit is contained in:
@@ -104,6 +104,7 @@ type pageData struct {
|
||||
Error string
|
||||
Notice string
|
||||
GiteaLoginURL string
|
||||
CurrentView string
|
||||
}
|
||||
|
||||
func New(cfg Config) (*Server, error) {
|
||||
@@ -182,6 +183,8 @@ func (s *Server) Routes() http.Handler {
|
||||
mux.HandleFunc("GET /auth/callback", s.handleCallback)
|
||||
mux.HandleFunc("POST /auth/logout", s.handleLogout)
|
||||
mux.HandleFunc("GET /portal", s.requireTechnician(s.handlePortal))
|
||||
mux.HandleFunc("GET /portal/packages", s.requireTechnician(s.handlePackagesPortal))
|
||||
mux.HandleFunc("GET /portal/audit", s.requireTechnician(s.handleAuditPortal))
|
||||
mux.HandleFunc("POST /portal/authorizations", s.requireTechnician(s.handleCreateAuthorization))
|
||||
mux.HandleFunc("POST /portal/authorizations/{id}/revoke", s.requireTechnician(s.handleRevokeAuthorization))
|
||||
mux.HandleFunc("POST /portal/packages", s.requireTechnician(s.handleUpsertPackage))
|
||||
|
||||
Reference in New Issue
Block a user