default options handler

This commit is contained in:
2024-11-04 11:00:02 +05:30
parent c34f5b7d0d
commit 894614cd54
5 changed files with 28 additions and 32 deletions

View File

@@ -17,9 +17,6 @@ func NewRouter() *Router {
r := &Router{
mux: http.NewServeMux(),
}
// catch all options
r.mux.Handle("OPTIONS /", optionsHandler{})
return r
}