A
A
Alexey2015-08-29 11:01:32
go
Alexey, 2015-08-29 11:01:32

How to correctly set a filter before all routes in beego?

Good afternoon.
The documentation says that for the filter to work on any route, you must set the pattern field to /* . However, the filter works on all routes except the root one. Can this be corrected somehow?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Shevelev, 2015-08-29
@MAKAPOH

Make two additions, one for /* the other for /

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question