Feat: better logs; login page
This commit is contained in:
6
main.go
6
main.go
@ -2,16 +2,16 @@ package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"golias/handlers"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
||||
// TODO: add config as param
|
||||
func ListenToRequests(port string) error{
|
||||
func ListenToRequests(port string) error {
|
||||
mux := http.NewServeMux()
|
||||
server := &http.Server{
|
||||
Handler: mux,
|
||||
Handler: handlers.LogRequests(handlers.GetSession(mux)),
|
||||
Addr: port,
|
||||
ReadTimeout: time.Second * 5,
|
||||
WriteTimeout: time.Second * 5,
|
||||
|
Reference in New Issue
Block a user