chore(backend): comment out swagger related assets and redundant css keys
This commit is contained in:
+14
-14
@@ -40,11 +40,11 @@ type IndexViewData struct {
|
||||
type EntryPointAssets struct {
|
||||
ContentDeliveryURL string `json:"cdn,omitempty"`
|
||||
JSFiles []EntryPointAsset `json:"jsFiles"`
|
||||
CSSFiles []EntryPointAsset `json:"cssFiles"`
|
||||
Dark string `json:"dark"`
|
||||
Light string `json:"light"`
|
||||
Swagger []EntryPointAsset `json:"swagger"`
|
||||
SwaggerCSSFiles []EntryPointAsset `json:"swaggerCssFiles"`
|
||||
// CSSFiles []EntryPointAsset `json:"cssFiles"`
|
||||
Dark string `json:"dark"`
|
||||
Light string `json:"light"`
|
||||
// Swagger []EntryPointAsset `json:"swagger"`
|
||||
// SwaggerCSSFiles []EntryPointAsset `json:"swaggerCssFiles"`
|
||||
}
|
||||
|
||||
type EntryPointAsset struct {
|
||||
@@ -62,13 +62,13 @@ func (a *EntryPointAssets) SetContentDeliveryURL(prefix string) {
|
||||
for i, p := range a.JSFiles {
|
||||
a.JSFiles[i].FilePath = prefix + p.FilePath
|
||||
}
|
||||
for i, p := range a.CSSFiles {
|
||||
a.CSSFiles[i].FilePath = prefix + p.FilePath
|
||||
}
|
||||
for i, p := range a.Swagger {
|
||||
a.Swagger[i].FilePath = prefix + p.FilePath
|
||||
}
|
||||
for i, p := range a.SwaggerCSSFiles {
|
||||
a.SwaggerCSSFiles[i].FilePath = prefix + p.FilePath
|
||||
}
|
||||
// for i, p := range a.CSSFiles {
|
||||
// a.CSSFiles[i].FilePath = prefix + p.FilePath
|
||||
// }
|
||||
// for i, p := range a.Swagger {
|
||||
// a.Swagger[i].FilePath = prefix + p.FilePath
|
||||
// }
|
||||
// for i, p := range a.SwaggerCSSFiles {
|
||||
// a.SwaggerCSSFiles[i].FilePath = prefix + p.FilePath
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user