Commit a9680e7e authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Exposed Vue resources from Spring app

parent fae7d466
VUE_APP_API_CLIENT = 'server'
VUE_APP_API_BASE_URL = 'http://localhost:8081/'
VUE_APP_API_BASE_URL = '/'
package it.inaf.ia2.gms.authn;
import java.security.Principal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class LoginController {
@Autowired
private SessionData sessionData;
@GetMapping("/login")
public Principal start(Principal principal) {
return principal;
}
@GetMapping(value = "/", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public Principal root(Principal principal) {
return principal;
}
}
......@@ -36,4 +36,9 @@ public class HomePageController {
return ResponseEntity.ok(response);
}
@GetMapping(value = "/", produces = MediaType.TEXT_HTML_VALUE)
public String index() {
return "index.html";
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment