mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
Whitespace
This commit is contained in:
parent
10d45b0c76
commit
2f1c0e3cd2
13
handlers.go
13
handlers.go
@ -22,7 +22,18 @@ var defaultLock string
|
|||||||
var debounceTime int
|
var debounceTime int
|
||||||
var diaryMode bool
|
var diaryMode bool
|
||||||
|
|
||||||
func serve(host, port, crt_path, key_path string, TLS bool, cssFile string, defaultPage string, defaultPassword string, debounce int, diary bool) {
|
func serve(
|
||||||
|
host,
|
||||||
|
port,
|
||||||
|
crt_path,
|
||||||
|
key_path string,
|
||||||
|
TLS bool,
|
||||||
|
cssFile string,
|
||||||
|
defaultPage string,
|
||||||
|
defaultPassword string,
|
||||||
|
debounce int,
|
||||||
|
diary bool,
|
||||||
|
) {
|
||||||
gin.SetMode(gin.ReleaseMode)
|
gin.SetMode(gin.ReleaseMode)
|
||||||
router := gin.Default()
|
router := gin.Default()
|
||||||
store := sessions.NewCookieStore([]byte("secret"))
|
store := sessions.NewCookieStore([]byte("secret"))
|
||||||
|
Loading…
Reference in New Issue
Block a user