Sofia Papagiannaki
35fe58de37
API: Extract OpenAPI specification from source code using go-swagger ( #40528 )
...
* API: Using go-swagger for extracting OpenAPI specification from source code
* Merge Grafana Alerting spec
* Include enterprise endpoints (if enabled)
* Serve SwaggerUI under feature flag
* Fix building dev docker images
* Configure swaggerUI
* Add missing json tags
Co-authored-by: Ying WANG <ying.wang@grafana.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2022-02-08 13:38:43 +01:00
Serge Zaitsev
57fcfd578d
Chore: replace macaron with web package ( #40136 )
...
* replace macaron with web package
* add web.go
2021-10-11 14:30:59 +02:00
Serge Zaitsev
c3ab2fdeb7
Macaron: remove custom Request type ( #37874 )
...
* remove macaron.Request, use http.Request instead
* remove com dependency from bindings module
* fix another c.Req.Request
2021-09-01 11:18:30 +02:00
Serge Zaitsev
d15cbe4b4e
Macaron cleanup ( #37795 )
...
* simplify some dependency injection in macaron
* remove unused internal server error handler from macaron
* remove internal server error handler from the router
* remove unused combo router api
* remove unused parts of the macaron router
2021-08-30 11:48:34 +02:00
Will Browne
c37a3bebb7
Plugins: Serve static assets directly instead of through middleware handler ( #32779 )
...
* removed static routes from macaron
* move path src to plugins pkg
* use plugin details
* remove dead code
* fixes
* use clean from std lib
* reformat imports
* remove caching headers + add security checks
* revert using no cache header middleware
* add cache-control headers
* add 404 check
* use new var for subsequent file handling
2021-04-21 15:17:23 +02:00
Arve Knudsen
51e4106d1d
API: Fix paths starting with double leading slash or slash and backslash ( #32830 )
...
* API: Fix paths starting with double leading slash or slash and backslash
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-04-09 11:49:38 +02:00
Arve Knudsen
7032ecce2a
Server: Disambiguate redirects to server relative paths ( #32788 )
...
* Server: Disambiguate redirects to server relative paths
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-04-08 15:05:42 +02:00
Arve Knudsen
c2cad26ca9
Chore: Disable default golangci-lint filter ( #29751 )
...
* Disable default golangci-lint filter
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Chore: Fix linter warnings
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-12-15 09:32:06 +01:00
Arve Knudsen
dff84f6a31
Chore: Remove dead code ( #28664 )
...
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-11-05 11:00:00 +01:00
Mario Trangoni
91fb2e07ce
pkg: fix codespell issues
2018-04-13 20:31:29 +02:00
bergquist
4fe72ebf69
feat(macaron): upgrades macaron version
2016-01-13 15:11:23 +01:00
Torkel Ödegaard
5f0e7cd52a
Added custom cache control headers for static content
2015-03-23 18:28:59 -04:00