mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
refactor(coderd/httpapi): remove database, dbauthz and rbac imports (#9481)
Ref: #9380
This commit is contained in:
committed by
GitHub
parent
d2115941b7
commit
6fc1f5276d
10
coderd/httpapi/httpapiconstraints/httpapiconstraints.go
Normal file
10
coderd/httpapi/httpapiconstraints/httpapiconstraints.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user