Commit c2269460 authored by Josh Ji's avatar Josh Ji

fix front-end stuff

parent 2b24d6ec
...@@ -7,6 +7,6 @@ import org.springframework.web.bind.annotation.GetMapping; ...@@ -7,6 +7,6 @@ import org.springframework.web.bind.annotation.GetMapping;
public class Home { public class Home {
@GetMapping("/") @GetMapping("/")
public String home(){ public String home(){
return "index.html"; return "index";
} }
} }
package com.example.rpserver.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class Profile {
@GetMapping("/profile")
public String profile(){
return "profile";
}
}
...@@ -4,8 +4,6 @@ server: ...@@ -4,8 +4,6 @@ server:
spring: spring:
thymeleaf: thymeleaf:
cache: false cache: false
prefix: classpath:/templates/
suffix:
encoding: UTF-8 encoding: UTF-8
mode: HTML mode: HTML
web: web:
......
...@@ -573,6 +573,7 @@ function getAssertion() { ...@@ -573,6 +573,7 @@ function getAssertion() {
if (result && result.success) { if (result && result.success) {
showSuccessMsg(result.message); showSuccessMsg(result.message);
location.assign('profile');
if ('handle' in result) { if ('handle' in result) {
setTimeout(function () { setTimeout(function () {
fetchCredentials(); fetchCredentials();
......
Markdown is supported
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