<commit_before>package router

import (
	"github.com/labstack/echo"
	"github.com/labstack/echo/middleware"
	"github.com/photoshelf/photoshelf-storage/infrastructure/container"
	"github.com/photoshelf/photoshelf-storage/presentation/controller"
)

func Load() (*echo.Echo, error) {
	e := echo.New()

	photoController := controller.New()
	container.Get(&photoController)

	g := e.Group("photos")
	g.GET("/:id", photoController.Get)
	g.POST("/", photoController.Post)
	g.PUT("/:id", photoController.Put)
	g.DELETE("/:id", photoController.Delete)

	e.Use(middleware.Logger())

	return e, nil
}<commit_msg>Add middleware for body limit<commit_after>package router

import (
	"github.com/labstack/echo"
	"github.com/labstack/echo/middleware"
	"github.com/photoshelf/photoshelf-storage/infrastructure/container"
	"github.com/photoshelf/photoshelf-storage/presentation/controller"
)

func Load() (*echo.Echo, error) {
	e := echo.New()

	photoController := controller.New()
	container.Get(&photoController)

	g := e.Group("photos")
	g.GET("/:id", photoController.Get)
	g.POST("/", photoController.Post)
	g.PUT("/:id", photoController.Put)
	g.DELETE("/:id", photoController.Delete)

	e.Use(middleware.Logger())
	e.Use(middleware.BodyLimit("20M"))

	return e, nil
}
{'fraction_non_alphanumeric': 0.1722488038277512, 'fraction_numerical': 0.001594896331738437, 'mean_word_length': 5.370558375634518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '640689', 'n_tokens_mistral': 460, 'n_tokens_neox': 429, 'n_words': 65}