Skip to content
Snippets Groups Projects
Commit 08dd6056 authored by joeappleton18's avatar joeappleton18
Browse files

updated the config

parent a248057f
No related branches found
No related tags found
No related merge requests found
package com.yatl;
import io.javalin.Javalin;
public class AppConfig {
public static Javalin startServer(int port) {
Javalin app = Javalin.create().start(port);
app.get("/todos", ctx -> ctx.result("get all todos"));
app.get("/todos/{id}", ctx -> ctx.result("get all todos"));
app.get("/todos/{id}", ctx -> ctx.result("get a single todo"));
return app;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment