Skip to content

Commit

Permalink
#49 match named routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Reindert Vetter committed Jun 3, 2020
1 parent 5d1c928 commit e4ee9ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/http/middleware/validate_post_size.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type ValidatePostSize struct {
App foundation.Application
}

func (v ValidatePostSize) Handle(data inter.Request, next inter.MiddlewareDestination) inter.Response {
func (v ValidatePostSize) Handle(request inter.Request, next inter.MiddlewareDestination) inter.Response {
// todo validate
return next(data)
return next(request)
}
2 changes: 1 addition & 1 deletion config/generics/generics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ package generics

import (
"github.com/lanvard/foundation/http"
"github.com/lanvard/foundation/http/outcome"
"github.com/lanvard/pipeline"
"github.com/lanvard/routing/outcome"
"lanvard/config"
)

Expand Down
2 changes: 1 addition & 1 deletion src/controllers/user_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package controllers

import (
"github.com/lanvard/contract/inter"
"github.com/lanvard/foundation/http/outcome"
"github.com/lanvard/routing/outcome"
"lanvard/src/adapters"
)

Expand Down

0 comments on commit e4ee9ab

Please sign in to comment.