-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUnusedEndpoint.java
More file actions
29 lines (26 loc) · 888 Bytes
/
UnusedEndpoint.java
File metadata and controls
29 lines (26 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package spp.demo.indicator;
import io.micronaut.http.HttpResponse;
import io.micronaut.http.annotation.Controller;
import io.micronaut.http.annotation.Get;
/**
* This class is used to demonstrate the `Unused Endpoint` indicator. This indicator will be automatically added to
* endpoints with no traffic and is visible in the gutter to the left of the editor.
* <p>
* <b>Usage:</b>
* N/A (automatically added)
* </p>
* <p>
* <b>Indicator source code:</b>
* <a href="https://github.com/sourceplusplus/jetbrains-commander/blob/master/resources/.spp/plugins/unused-endpoint/plugin.kts">Unused Endpoint</a>
* </p>
*/
@Controller("/indicator")
public class UnusedEndpoint {
/**
* Hover your mouse over the cloud icon on line 26 to see the unused URL.
*/
@Get("/unused-endpoint")
public HttpResponse<Void> unused() {
return HttpResponse.ok();
}
}