mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: add SCIM provisioning via Okta (#4132)
Co-authored-by: Ben Potter <ben@coder.com>
This commit is contained in:
@ -75,6 +75,12 @@ func InternalServerError(rw http.ResponseWriter, err error) {
|
||||
})
|
||||
}
|
||||
|
||||
func RouteNotFound(rw http.ResponseWriter) {
|
||||
Write(rw, http.StatusNotFound, codersdk.Response{
|
||||
Message: "Route not found.",
|
||||
})
|
||||
}
|
||||
|
||||
// Write outputs a standardized format to an HTTP response body.
|
||||
func Write(rw http.ResponseWriter, status int, response interface{}) {
|
||||
buf := &bytes.Buffer{}
|
||||
|
Reference in New Issue
Block a user