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;
public class Home {
@GetMapping("/")
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:
spring:
thymeleaf:
cache: false
prefix: classpath:/templates/
suffix:
encoding: UTF-8
mode: HTML
web:
......
......@@ -573,6 +573,7 @@ function getAssertion() {
if (result && result.success) {
showSuccessMsg(result.message);
location.assign('profile');
if ('handle' in result) {
setTimeout(function () {
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