fix: JWT kid/jku lessons (#1949)
* refactor: rewrite hints Use active voice and fix grammar issues. * fix: use Thymeleaf `th:action` * fix: JWT kid/jku lessons Split the JavaScript into two files they pointed to the same URL The JWTs are now valid, they parse successfully. The paths now include `/kid` and `/jku` to make sure the hints match accordingly in the UI. Otherwise `/delete` would pick up both hints from both assignments as the paths overlap. Closes: #1715 * fix: update to latest pre-commit version * fix: increase timeouts for server to start during integration tests
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
function follow(user) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'JWT/final/follow/' + user
|
||||
url: 'JWT/kid/follow/' + user
|
||||
}).then(function (result) {
|
||||
$("#toast").append(result);
|
||||
})
|
8
src/main/resources/lessons/jwt/js/jwt-kid.js
Normal file
8
src/main/resources/lessons/jwt/js/jwt-kid.js
Normal file
@ -0,0 +1,8 @@
|
||||
function startFollowing(user) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'JWT/kid/follow/' + user
|
||||
}).then(function (result) {
|
||||
$("#toast").append(result);
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user