@@ -72,8 +72,8 @@ func initHTTPHandlers(e *echo.Echo, app *App) {
72
72
})
73
73
74
74
g .GET (path .Join (adminRoot , "" ), handleAdminPage )
75
- g .GET (path .Join (adminRoot , "/custom.css" ), serveCustomApperance ("admin.custom_css" ))
76
- g .GET (path .Join (adminRoot , "/custom.js" ), serveCustomApperance ("admin.custom_js" ))
75
+ g .GET (path .Join (adminRoot , "/custom.css" ), serveCustomAppearance ("admin.custom_css" ))
76
+ g .GET (path .Join (adminRoot , "/custom.js" ), serveCustomAppearance ("admin.custom_js" ))
77
77
g .GET (path .Join (adminRoot , "/*" ), handleAdminPage )
78
78
79
79
// API endpoints.
@@ -210,8 +210,8 @@ func initHTTPHandlers(e *echo.Echo, app *App) {
210
210
e .GET ("/archive/latest" , handleCampaignArchivePageLatest )
211
211
}
212
212
213
- e .GET ("/public/custom.css" , serveCustomApperance ("public.custom_css" ))
214
- e .GET ("/public/custom.js" , serveCustomApperance ("public.custom_js" ))
213
+ e .GET ("/public/custom.css" , serveCustomAppearance ("public.custom_css" ))
214
+ e .GET ("/public/custom.js" , serveCustomAppearance ("public.custom_js" ))
215
215
216
216
// Public health API endpoint.
217
217
e .GET ("/health" , handleHealthCheck )
@@ -248,9 +248,9 @@ func handleHealthCheck(c echo.Context) error {
248
248
return c .JSON (http .StatusOK , okResp {true })
249
249
}
250
250
251
- // serveCustomApperance serves the given custom CSS/JS appearance blob
251
+ // serveCustomAppearance serves the given custom CSS/JS appearance blob
252
252
// meant for customizing public and admin pages from the admin settings UI.
253
- func serveCustomApperance (name string ) echo.HandlerFunc {
253
+ func serveCustomAppearance (name string ) echo.HandlerFunc {
254
254
return func (c echo.Context ) error {
255
255
var (
256
256
app = c .Get ("app" ).(* App )
0 commit comments