diff --git a/src/main.java b/src/main.java index f8ef38d..a276226 100644 --- a/src/main.java +++ b/src/main.java @@ -1,15 +1,7 @@ public class main { public static void main(String[] args) { - Thread mythread = new Thread(new Runnable() { - @Override - public void run() { - new Webserver().startserver(); - } - }); + Thread mythread = new Thread(() -> new Webserver().startserver()); mythread.start(); System.out.println("thread started"); - } - - } diff --git a/wwwroot/index.html b/wwwroot/index.html index b144502..79881e8 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -1,8 +1,18 @@ - - - - - -hello there - - \ No newline at end of file + + + + + + + + + + + + + hello there + + diff --git a/wwwroot/js/index.js b/wwwroot/js/index.js new file mode 100644 index 0000000..03c34b5 --- /dev/null +++ b/wwwroot/js/index.js @@ -0,0 +1,3 @@ +$(document).ready(function() { + console.log("hey from js"); +});