mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: Refactor site to improve testing (#2014)
It was difficult to develop this package due to the embed build tag being mandatory on the tests. The logic to test doesn't require any embedded files.
This commit is contained in:
@ -334,7 +334,7 @@ func New(options *Options) *API {
|
||||
r.Get("/state", api.workspaceBuildState)
|
||||
})
|
||||
})
|
||||
r.NotFound(site.DefaultHandler().ServeHTTP)
|
||||
r.NotFound(site.Handler(site.FS()).ServeHTTP)
|
||||
|
||||
return api
|
||||
}
|
||||
|
Reference in New Issue
Block a user