Browse Source

Add HandleTextCss func

Volodymyr Tkach 2 years ago
parent
commit
8d4aa69c94
1 changed files with 5 additions and 0 deletions
  1. 5 0
      utils/http/helpers/helpers.go

+ 5 - 0
utils/http/helpers/helpers.go

@@ -20,6 +20,7 @@ import (
 // func HandleAppStatus() http.Handler
 // func HandleAppStatus() http.Handler
 // func HandleFile(data, contentType string) http.Handler
 // func HandleFile(data, contentType string) http.Handler
 // func HandleImagePng(data string) http.Handler
 // func HandleImagePng(data string) http.Handler
+// func HandleTextCss(data string) http.Handler
 // func HandleTextJavaScript(data string) http.Handler
 // func HandleTextJavaScript(data string) http.Handler
 // func HandleTextPlain(data string) http.Handler
 // func HandleTextPlain(data string) http.Handler
 // func HandleTextXml(data string) http.Handler
 // func HandleTextXml(data string) http.Handler
@@ -90,6 +91,10 @@ func HandleImagePng(data string) http.Handler {
 	return HandleFile(data, "image/png")
 	return HandleFile(data, "image/png")
 }
 }
 
 
+func HandleTextCss(data string) http.Handler {
+	return HandleFile(data, "text/css")
+}
+
 func HandleTextJavaScript(data string) http.Handler {
 func HandleTextJavaScript(data string) http.Handler {
 	return HandleFile(data, "text/javascript")
 	return HandleFile(data, "text/javascript")
 }
 }