go-zero/rest
kingxt aa3c391919
api add middleware support (#140)
* rebase upstream

* rebase

* trim no need line

* trim no need line

* trim no need line

* update doc

* remove update

* remove no need

* remove no need

* goctl add jwt support

* goctl add jwt support

* goctl add jwt support

* goctl support import

* goctl support import

* support return ()

* revert

* refactor and rename folder to group

* remove no need

* add anonymous annotation

* optimized

* rename

* rename

* update test

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* api add middleware support: usage:

@server(
    middleware: M1, M2
)

* simple logic

* should reverse middlewares

* optimized

* optimized

* rename

Co-authored-by: kingxt <dream4kingxt@163.com>
2020-10-19 18:34:10 +08:00
..
handler fix golint issues 2020-10-16 10:50:43 +08:00
httpx add more tests 2020-10-01 17:50:53 +08:00
internal use package level defined contextKey as context key 2020-09-20 12:46:35 +08:00
router export router 2020-08-12 12:16:36 +08:00
token export token parser for refresh token service 2020-08-12 12:12:31 +08:00
config.go rename rpcx to zrpc 2020-09-18 11:41:52 +08:00
engine.go fix typo of prometheus 2020-09-27 17:15:15 +08:00
server_test.go api add middleware support (#140) 2020-10-19 18:34:10 +08:00
server.go api add middleware support (#140) 2020-10-19 18:34:10 +08:00
types.go rename ngin to rest 2020-07-31 11:45:16 +08:00