Serve compiled front from the same application
also add embedded build for production
This commit is contained in:
@@ -45,7 +45,7 @@ func ConnectDemo2User(router *gin.Engine) string {
|
||||
|
||||
func connectUser(router *gin.Engine, loginJson string) string {
|
||||
w := httptest.NewRecorder()
|
||||
req, _ := http.NewRequest("POST", "/auth/login", strings.NewReader(loginJson))
|
||||
req, _ := http.NewRequest("POST", "/ws/auth/login", strings.NewReader(loginJson))
|
||||
router.ServeHTTP(w, req)
|
||||
var parsedResponse loginResponse
|
||||
err := json.Unmarshal(w.Body.Bytes(), &parsedResponse)
|
||||
|
||||
Reference in New Issue
Block a user