Gradually remove Macaron web framework (#36325)

* add macaron code to the code base

* remove unused secure cookies support from macaron

* clean up modules

* remove com dependency

* fix silly typos

* little cleanup, remove recovery middleware

* remove logger middleware

* remove static handler and remove unused context methods

* bring inject into macaron codebase

* remove unused applicator

* add back macaron license

* more cleanups in macaron code

* remove unused injector Set method

* remove unused context methods: param to int conversion, body helper type, cookie helpers

* remove action from context

* remove complex environment handling, we only use Env variable

* restore ReplaceAllParams to fix the tests
This commit is contained in:
Serge Zaitsev
2021-07-08 14:19:40 +02:00
committed by GitHub
parent 4c0acf335b
commit 9b2d7d6d69
13 changed files with 2535 additions and 2 deletions
+1 -1
View File
@@ -553,7 +553,7 @@ func GetDashboardVersion(c *models.ReqContext) response.Response {
query := models.GetDashboardVersionQuery{
OrgId: c.OrgId,
DashboardId: dashID,
Version: c.ParamsInt(":id"),
Version: int(c.ParamsInt64(":id")),
}
if err := bus.Dispatch(&query); err != nil {