mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
fix storyshots for MarkdownViewer and SyntaxHighlighter
This commit is contained in:
18
scm-ui/ui-components/src/__resources__/HttpServer.go.js
Normal file
18
scm-ui/ui-components/src/__resources__/HttpServer.go.js
Normal file
@@ -0,0 +1,18 @@
|
||||
export default `package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func main() {
|
||||
http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request) {
|
||||
fmt.Fprintf(w, "Welcome to my website!")
|
||||
})
|
||||
|
||||
fs := http.FileServer(http.Dir("static/"))
|
||||
http.Handle("/static/", http.StripPrefix("/static/", fs))
|
||||
|
||||
http.ListenAndServe(":80", nil)
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user