Skip to content

Commit c721919

Browse files
committed
hmm
1 parent 0369474 commit c721919

File tree

2 files changed

+20
-14
lines changed

2 files changed

+20
-14
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package org.example.web.myapp;
2+
3+
import io.avaje.http.api.Controller;
4+
import io.avaje.http.api.Get;
5+
import io.avaje.http.api.Produces;
6+
import io.avaje.jex.http.Context;
7+
import jakarta.inject.Inject;
8+
9+
@Controller("/req-scoped")
10+
class ReqScopedController {
11+
12+
@Inject
13+
Context context;
14+
15+
@Produces("text/plain")
16+
@Get
17+
String getSimple() {
18+
return context.fullUrl();
19+
}
20+
}

tests/test-jex/src/main/java/org/example/web/myapp/RequestScopeController.java

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)