2013-03-23 15:52:26 +01:00
|
|
|
package com.commafeed.frontend.rest;
|
|
|
|
|
|
2013-03-28 19:41:40 +01:00
|
|
|
import java.util.Set;
|
|
|
|
|
|
2013-03-23 15:52:26 +01:00
|
|
|
import javax.ws.rs.ApplicationPath;
|
|
|
|
|
import javax.ws.rs.core.Application;
|
|
|
|
|
|
2013-03-29 17:17:36 +01:00
|
|
|
import com.commafeed.frontend.rest.resources.AdminUsersREST;
|
2013-03-28 19:41:40 +01:00
|
|
|
import com.commafeed.frontend.rest.resources.EntriesREST;
|
|
|
|
|
import com.commafeed.frontend.rest.resources.SettingsREST;
|
|
|
|
|
import com.commafeed.frontend.rest.resources.SubscriptionsREST;
|
|
|
|
|
import com.google.common.collect.Sets;
|
|
|
|
|
|
2013-03-23 15:52:26 +01:00
|
|
|
@ApplicationPath("/rest")
|
|
|
|
|
public class RESTApplication extends Application {
|
|
|
|
|
|
2013-03-28 19:41:40 +01:00
|
|
|
@Override
|
|
|
|
|
public Set<Class<?>> getClasses() {
|
|
|
|
|
Set<Class<?>> set = Sets.newHashSet();
|
|
|
|
|
set.add(JSONMessageBodyReaderWriter.class);
|
|
|
|
|
|
|
|
|
|
set.add(SubscriptionsREST.class);
|
|
|
|
|
set.add(EntriesREST.class);
|
|
|
|
|
set.add(SettingsREST.class);
|
2013-03-29 17:17:36 +01:00
|
|
|
set.add(AdminUsersREST.class);
|
2013-03-28 19:41:40 +01:00
|
|
|
return set;
|
|
|
|
|
}
|
2013-03-23 15:52:26 +01:00
|
|
|
}
|