()
| 16 | } |
| 17 | |
| 18 | func newMethodFilter() *methodFilter { |
| 19 | return &methodFilter{ |
| 20 | name: "method", |
| 21 | title: "api method", |
| 22 | typ: TypeStatic, |
| 23 | options: []string{HttpALL, http.MethodGet, http.MethodPost, http.MethodPut, http.MethodDelete, http.MethodPatch, http.MethodHead, http.MethodOptions}, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func (m *methodFilter) Name() string { |
| 28 | return m.name |