-
Notifications
You must be signed in to change notification settings - Fork 556
perf: Api optimizations #3250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: Api optimizations #3250
Changes from 172 commits
808bdee
c20a6f3
c33cd18
a708524
8ef2fe0
ebccd66
82cc6ce
69e130c
8adafe6
95c3ea5
c721bc6
4e85194
3081905
2583e7d
1e1af86
4576faf
45a53db
f3262f6
f8b9808
3a5ec30
b6a814a
54e9fb8
298dc02
5b7d981
f9a1a01
5259a68
db1c67d
8ccf250
dceed53
b01338e
006bcb2
7f71d71
52290ac
2492990
29b87ec
edf393f
68f5fa2
8c458f1
5de5950
071c7ee
882abdd
412d78d
a51bdc4
91eb23c
3d8b9b9
e3a0841
5c1ecdd
ba483ca
2b4d337
4b0a094
f884c12
5c87303
0aaea57
1836ecc
8c0339e
5141cc2
44e5805
3c5fe1d
7cf066c
28a7ad7
a6eac8d
7a82d50
cb8fa0c
1b574b3
e3f4786
5360dcb
a67bbe7
63d4ac7
baa12f1
d323c2c
577e71e
9431cd9
e13077f
6229cc4
487c4ab
83081f0
e5a35a0
cd482b7
f9d2b8d
370339c
5f84df4
dc0a7eb
cb8a2c3
3ceafbe
f6c50c5
1a3b8c9
04e6d48
73a5a80
e656493
1d781c4
4b9409c
545dd56
e7d8ff4
435bc84
7a3203d
3d3dbbb
20d2258
7e220aa
4bea009
8b640ff
1e5575a
588ff46
c6c0c2f
c5aef16
674979d
dbffa61
6dd8103
e6c5062
45a0018
71578e2
b117481
c5184a1
aa155bc
3d02500
ac10dbf
fbcbedc
cea53a6
f0f67ea
b8160f2
29bf75e
d1dea39
4ab75b8
d63eb75
c78cfa1
3150bf0
ce46734
4a545b7
b001491
03da0bb
fe49d80
9c87f7b
8ceee83
cc745b7
3a61e77
b8c5fb1
986d103
cada689
c30da67
748a42f
d2d1345
e993542
ad81f71
5ce8c7e
315b19a
2a421f9
e0db292
b7299cf
c0e77b3
cb8fb85
67184e5
6092aba
029dd29
3bfafe4
5cfe357
14ff2f9
c70fb89
cb49390
bb929a5
17550c5
3cce4d0
a7dd800
816f960
7a78d91
5fe3ecc
a6c356a
7780c31
88ba6e9
5a3a75a
898e3e1
80dece0
316a67f
c37237e
dd80778
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,7 @@ func NewModuleRouterImpl(moduleRestHandler ModuleRestHandler) *ModuleRouterImpl | |
|
|
||
| func (impl ModuleRouterImpl) Init(configRouter *mux.Router) { | ||
| configRouter.Path("").HandlerFunc(impl.moduleRestHandler.GetModuleInfo).Queries("name", "{name}").Methods("GET") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we need this if we have below API??
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tested the api route, golang didn't take queries as optional, but I wanted to make it optional, that's why I had put it there |
||
| configRouter.Path("").HandlerFunc(impl.moduleRestHandler.GetModuleInfo).Methods("GET") | ||
| configRouter.Path("/config").HandlerFunc(impl.moduleRestHandler.GetModuleConfig).Queries("name", "{name}").Methods("GET") | ||
| configRouter.Path("").HandlerFunc(impl.moduleRestHandler.HandleModuleAction).Queries("name", "{name}").Methods("POST") | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.