http-service: add session check call to check session validity

This commit is contained in:
Adam
2017-05-20 11:37:49 -04:00
parent edebf40162
commit f92da7b9b1
3 changed files with 33 additions and 0 deletions

View File

@@ -92,6 +92,9 @@ public class Service implements SparkApplication
before("/logout", authFilter);
get("/logout", accounts::logout);
before("/session-check", authFilter);
get("/session-check", accounts::sessionCheck);
});
before("/config", authFilter);
path("/config", () ->

View File

@@ -249,4 +249,10 @@ public class AccountService
return "";
}
public Object sessionCheck(Request request, Response response)
{
// Auth filter would kick this out before here
return "";
}
}