Skip to content

Commit c230a96

Browse files
committed
Added a lot of resources
1 parent 148a7fb commit c230a96

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

App.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,18 @@ public static void main(String[] args) {
77
staticFileLocation("/public");
88
CustomerDB c = new DBD();
99
AccountDB d = new DBD();
10+
c.createNewCustomer("administrator");
1011
get("/", (req, res) -> {
1112
res.redirect("/login.html");
1213
return " ";
1314
});
15+
post("/login", (req, res) -> {
16+
String username = req.queryParams("username");
17+
String password = req.queryParams("password");
1418

19+
if(username.equals("administrator") && password.equals("123")){
20+
return " ";
21+
}
22+
});
1523
}
1624
}

Templates.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
public class Templates {
2+
3+
}

0 commit comments

Comments
 (0)