feat(backend/http): added OPTIONS method for all paths
This commit is contained in:
parent
d4e5fce12a
commit
d68ac74731
1 changed files with 2 additions and 2 deletions
|
|
@ -41,8 +41,8 @@ func (e *Router) init() {
|
|||
prefix := "/ingest"
|
||||
|
||||
for path, handler := range handlers {
|
||||
e.router.HandleFunc(path, handler).Methods("POST")
|
||||
e.router.HandleFunc(prefix+path, handler).Methods("POST")
|
||||
e.router.HandleFunc(path, handler).Methods("POST", "OPTIONS")
|
||||
e.router.HandleFunc(prefix+path, handler).Methods("POST", "OPTIONS")
|
||||
}
|
||||
|
||||
// CORS middleware
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue