mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 16:34:26 +00:00
Implement auth handler integration test
This commit is contained in:
@@ -12,12 +12,14 @@ type StaticHandler struct {
|
||||
staticPath string
|
||||
}
|
||||
|
||||
// NewStaticHandler creates a new StaticHandler with the given static path
|
||||
func NewStaticHandler(staticPath string) *StaticHandler {
|
||||
return &StaticHandler{
|
||||
staticPath: staticPath,
|
||||
}
|
||||
}
|
||||
|
||||
// ServeHTTP serves the static files
|
||||
func (h *StaticHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
// Get the requested path
|
||||
requestedPath := r.URL.Path
|
||||
|
||||
Reference in New Issue
Block a user