You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
handler fix golint issues 4 years ago
httpx add more tests 4 years ago
internal use package level defined contextKey as context key 4 years ago
router export router 4 years ago
token export token parser for refresh token service 4 years ago
config.go rename rpcx to zrpc 4 years ago
engine.go fix typo of prometheus 4 years ago
server.go api add middleware support (#140) 4 years ago
server_test.go api add middleware support (#140) 4 years ago
types.go rename ngin to rest 4 years ago