going-further/api/auth.go

19 lines
443 B
Go
Raw Permalink Normal View History

2024-04-23 01:53:20 +00:00
package api
import (
"log/slog"
"net/http"
)
func getLoginHandleFunc(sessions SessionProvider, log *slog.Logger) func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
// login html page
}
}
func postLoginHandleFunc(sessions SessionProvider, log *slog.Logger) func(w http.ResponseWriter, r *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
// login html page
}
}