rapidoid / rapidoid

Rapidoid - Extremely Fast, Simple and Powerful Java Web Framework and HTTP Server!

Home Page:http://www.rapidoid.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enabling CORS on a view with no access to Resp

noahbkim opened this issue · comments

My view looks something like this:

@GET("/api/thing/{id}")
public Document get(String id) {
    return Thing.select(id);
}

I'd like to enable CORS on the endpoint, but I'm not sure how I can do so without access to the Resp in the view signature. Are there any other ways to do this?