Improve comment
This commit is contained in:
parent
13fe896472
commit
75ce2c54ab
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ func (h *Handlers) Read(model interface{}) http.Handler {
|
||||||
func (h *Handlers) modelHandler(model string, pattern config.PathPattern) http.Handler {
|
func (h *Handlers) modelHandler(model string, pattern config.PathPattern) http.Handler {
|
||||||
fn := func(w http.ResponseWriter, r *http.Request) {
|
fn := func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
// Replace "api" prefix
|
// Replace the "api" prefix.
|
||||||
pattern.PathPattern = strings.Replace(pattern.PathPattern, "/api", "", -1)
|
pattern.PathPattern = strings.Replace(pattern.PathPattern, "/api", "", -1)
|
||||||
|
|
||||||
switch r.Method {
|
switch r.Method {
|
||||||
|
|
Loading…
Reference in a new issue