Skip to content

ojardila/beego_middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Middleware in Beego

Basic example for creating middlewares in Beego framework.

Installation

Standard go get:

$ go get github.com/ojardila/beego_middleware

Dependencies

  go get github.com/astaxie/beego 

Configuring Beego Middleware

Add the following lines into the routers/routers.go file which will initialize the filter to run on all requests (BeforeStatic, BeforeRouter, BeforeStatic, AfterExec and FinishRouter)

 import "github.com/ojardila/beego_middleware"
 
 func init() {
    beego_keenio.InitMiddleware()

  
 }

About

Basic example for creating middlewares in Beego framework.

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages