Skip to content

Commit 9edf9bc

Browse files
committed
Remove extension from files
1 parent 24282df commit 9edf9bc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cmd/admin/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func loadConfiguration(file, service string) (config.JSONConfigurationService, e
150150
}
151151

152152
// Function to load the configuration from a single YAML file
153-
func loadConfigurationYAML(file string) (config.AdminConfiguration, error) {
153+
/*func loadConfigurationYAML(file string) (config.AdminConfiguration, error) {
154154
var cfg config.AdminConfiguration
155155
// Load file and read config
156156
viper.SetConfigFile(file)
@@ -160,7 +160,7 @@ func loadConfigurationYAML(file string) (config.AdminConfiguration, error) {
160160
}
161161
// No errors!
162162
return cfg, nil
163-
}
163+
}*/
164164

165165
// Initialization code
166166
func init() {
@@ -357,13 +357,13 @@ func osctrlAdminService() {
357357
// Admin: static
358358
adminMux.Handle("GET /static/", http.StripPrefix("/static", http.FileServer(http.Dir(flagParams.StaticFiles))))
359359
// Admin: background image
360-
adminMux.HandleFunc("GET /background.png", func(w http.ResponseWriter, r *http.Request) {
360+
adminMux.HandleFunc("GET /background-image", func(w http.ResponseWriter, r *http.Request) {
361361
http.ServeFile(w, r, flagParams.BackgroundImage)
362362
})
363363
// ///////////////////////// AUTHENTICATED CONTENT
364364
// Admin: branding image
365365
adminMux.Handle(
366-
"GET /branding.png",
366+
"GET /branding-image",
367367
handlerAuthCheck(
368368
http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
369369
http.ServeFile(w, r, flagParams.BrandingImage)

cmd/admin/static/css/custom.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
}
1717

1818
.navbar-brand {
19-
background-image: url("/branding.png");
19+
background-image: url("/branding-image");
2020
background-position: 50% 50%;
2121
background-repeat: no-repeat;
2222
background-size: 100%;
@@ -69,7 +69,7 @@ input[type=text]#carve {
6969

7070
body {
7171
font-family: 'Bai Jamjuree', sans-serif;
72-
background-image: url("/background.png");
72+
background-image: url("/background-image");
7373
background-attachment: fixed;
7474
}
7575

0 commit comments

Comments
 (0)