add a GET method to the fever api (#1176)

This commit is contained in:
Athou
2023-12-15 17:53:47 +01:00
parent c86a060170
commit e4863e8881

View File

@@ -17,6 +17,7 @@ import java.util.stream.Stream;
import javax.inject.Inject;
import javax.inject.Singleton;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
@@ -83,6 +84,13 @@ public class FeverREST {
private final FeedCategoryDAO feedCategoryDAO;
private final FeedEntryStatusDAO feedEntryStatusDAO;
@Path(PATH)
@GET
@Produces(MediaType.TEXT_PLAIN)
public String welcome() {
return "Welcome to the CommaFeed Fever API. Add this URL to your Fever-compatible reader.";
}
// expected Fever API
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Path(PATH)