Denis Arh
d886a98740
Implements JWT authorization along with some refactoring
...
- introduces auth package, for common (sam, crm) auth handlers
- routes are now generated inside server package, each handler got its own MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)
- there MountRoute methods are now called from non-generated code so we can inject services to (rest) controllers
2018-07-26 20:12:14 +02:00
Tit Petric
44be095b3f
fix(codegen): merge parameters from api parent and call
2018-07-20 11:05:58 +02:00
Denis Arh
c11a1a74d1
Prevent codegen from doing empty type() when no struct is defined
2018-07-19 22:32:54 +02:00
Tit Petric
0954e5c53d
upd(codegen): spec update for nested message apis
2018-07-19 21:00:25 +02:00
Tit Petric
efecfd31b8
Merge branch 'master' of https://github.com/crusttech/crust
2018-07-19 20:24:50 +02:00
Tit Petric
8ae57475e0
del(codegen): remove route debug
2018-07-19 20:21:53 +02:00
Denis Arh
ff79246202
Fix codegen template for rest controllers, remove obsolete code
2018-07-19 19:09:07 +02:00
Denis Arh
922cd6af35
Fix govet warning 'composite literal uses unkeyed fields'
2018-07-19 18:50:53 +02:00
Tit Petric
2222c53158
upd(generator): add docs from spec files
2018-07-19 16:39:09 +02:00
Tit Petric
235574bf42
upd(all): pass context from http request to service bridge
2018-07-17 12:23:57 +02:00
Tit Petric
5aae6e9001
upd(all): move rest implementation into subpkg
2018-07-16 00:35:01 +02:00
Tit Petric
b68337c111
upd(codegen): generate subpackages
2018-07-16 00:13:45 +02:00
Tit Petric
657ef15cf5
fix: codegen template path update
2018-07-13 20:28:28 +02:00
Tit Petric
837c10e448
update(all): moved codegen to root /codegen
2018-07-13 17:47:05 +02:00