Skip to content
Discussion options

You must be logged in to vote

To explain the differences:

Part 1: registering endpoints

Your code registers an endpoint by using the "@path" annotation in one spot, and applying "@get" on a method.

In Minum the equivalent, as succinctly as possible, is:

var wf = minum.getWebFramework();
wf.registerPath(GET, "hello", r -> Response.htmlOk("<p>Hi there world!</p>"));

And then you could see "Hi there world" when visiting localhost:8080/hello

Note there is no use of reflection in Minum, and no annotations required to use the framework. All code is plain Java (in case you were
curious, it's to make stack traces and debugging clearer).

One of the example projects declares its endpoints here and an example of an endpoint is h…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by byronka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants