2021-01-30 03:11:55 +01:00
|
|
|
package wwwshop
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
2021-02-02 17:59:24 +01:00
|
|
|
c "WWWShop/wwwshop/controller"
|
|
|
|
u "WWWShop/wwwshop/controller/usercontroller"
|
2021-01-30 03:11:55 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
type WWWShop struct {}
|
|
|
|
|
|
|
|
func New() WWWShop {
|
|
|
|
var self = WWWShop {};
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (self WWWShop) Init() {
|
2021-02-02 17:59:24 +01:00
|
|
|
user_controller := c.GenerateController(u.New())
|
|
|
|
http.Handle("/user", user_controller)
|
2021-02-04 21:53:32 +01:00
|
|
|
http.Handle("/user/", user_controller)
|
2021-01-30 03:11:55 +01:00
|
|
|
http.ListenAndServe(":8080", nil)
|
|
|
|
}
|