Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IA2
GMS
Commits
a9680e7e
Commit
a9680e7e
authored
Aug 20, 2019
by
Sonia Zorba
Browse files
Exposed Vue resources from Spring app
parent
fae7d466
Changes
3
Hide whitespace changes
Inline
Side-by-side
gms-ui/.env.production
View file @
a9680e7e
VUE_APP_API_CLIENT = 'server'
VUE_APP_API_BASE_URL = '
http://localhost:8081
/'
VUE_APP_API_BASE_URL = '/'
gms/src/main/java/it/inaf/ia2/gms/authn/LoginController.java
deleted
100644 → 0
View file @
fae7d466
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
;
}
}
gms/src/main/java/it/inaf/ia2/gms/controller/HomePageController.java
View file @
a9680e7e
...
...
@@ -36,4 +36,9 @@ public class HomePageController {
return
ResponseEntity
.
ok
(
response
);
}
@GetMapping
(
value
=
"/"
,
produces
=
MediaType
.
TEXT_HTML_VALUE
)
public
String
index
()
{
return
"index.html"
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment