forked from WEB-IMB-WS2526/lab-development-imb
25 lines
442 B
Go
25 lines
442 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
// Handler Funktion login
|
|
func loginHandler(w http.ResponseWriter, r *http.Request) {
|
|
fmt.Fprintln(w, "Sie sind eingeloggt")
|
|
}
|
|
|
|
// Handler Funktion Logout
|
|
func logoutHandler(w http.ResponseWriter, r *http.Request) {
|
|
fmt.Fprintln(w, "Sie sind ausgeloggt")
|
|
}
|
|
|
|
func main() {
|
|
|
|
http.HandleFunc("/login", loginHandler)
|
|
http.HandleFunc("/logout", logoutHandler)
|
|
|
|
http.ListenAndServe(":8080", nil)
|
|
}
|