dnote/pkg/server/routes/middleware.go
2021-01-03 18:57:44 +11:00

20 lines
422 B
Go

package routes
import (
"net/http"
"github.com/dnote/dnote/pkg/server/app"
)
type middleware func(h http.Handler, app *app.App, rateLimit bool) http.Handler
// WebMw is the middleware for the web
func WebMw(h http.Handler, app *app.App, rateLimit bool) http.Handler {
ret := h
return ret
}
// APIMw is the middleware for the API
func APIMw(h http.Handler, app *app.App, rateLimit bool) http.Handler {
return h
}