refactor(coderd/httpapi): remove database, dbauthz and rbac imports (#9481)

Ref: #9380
This commit is contained in:
Mathias Fredriksson
2023-09-04 19:39:14 +03:00
committed by GitHub
parent d2115941b7
commit 6fc1f5276d
5 changed files with 40 additions and 7 deletions

View File

@ -0,0 +1,10 @@
// Package httpapiconstraints contain types that can be used and implemented
// across the application to return specific HTTP status codes without pulling
// in large dependency trees.
package httpapiconstraints
// IsUnauthorizedError is an interface that can be implemented in other packages
// in order to return 404.
type IsUnauthorizedError interface {
IsUnauthorized() bool
}