import nekopull.core.Application; import nekopull.core.HttpRouter; public class MyApp { public static void main(String[] args) { Application app = new Application(); HttpRouter router = new HttpRouter(); router.get("/hello", (req, res) -> { res.send("Hello, NekoPull!"); }); app.useRouter(router); app.start(8080); } }


上一篇:
下一篇:
切换中文