Börjat lite med createPallet men ej klar. följt compendiet kanske ej rätt
This commit is contained in:
parent
ef3aecfe38
commit
051c15d8d3
1 changed files with 21 additions and 2 deletions
|
@ -81,8 +81,27 @@ public class Database {
|
|||
}
|
||||
|
||||
public String createPallet(Request req, Response res) {
|
||||
return "{}";
|
||||
}
|
||||
|
||||
if (req.queryParams("cookie") != null) {
|
||||
String cookie = req.queryParams("cookie");
|
||||
return createPallet(cookie);
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
protected String createPallet(String cookie) {
|
||||
String query = "";
|
||||
try (PreparedStatement stmt = conn.prepareStatement(query)) {
|
||||
|
||||
} catch (SQLException e) {
|
||||
return "";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private String getJson(String query, String title) { //privat hjälpmetod så man slipper kalla på jsonizer varje gång
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue