forked from Archives/Athou_commafeed
use jax rs instead of wicket for rest api
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
|
||||
|
||||
<filter>
|
||||
<filter-name>Wicket</filter-name>
|
||||
|
||||
@@ -7,7 +7,7 @@ module.factory('CategoryService', [ '$resource', '$http',
|
||||
method : 'GET'
|
||||
}
|
||||
}
|
||||
res = $resource('subscriptions', {}, actions);
|
||||
res = $resource('rest/subscriptions', {}, actions);
|
||||
return res
|
||||
} ]);
|
||||
|
||||
@@ -17,12 +17,10 @@ module.factory('EntryService', [ '$resource', '$http',
|
||||
'getUnread' : {
|
||||
method : 'GET',
|
||||
params : {
|
||||
_type : 'category',
|
||||
_id : '1',
|
||||
_readtype : 'unread',
|
||||
_method : 'get'
|
||||
}
|
||||
}
|
||||
}
|
||||
res = $resource('entries/:_type/:_id/:_readtype', {}, actions);
|
||||
res = $resource('rest/entries/:_method/:_type/:_id/:_readtype', {}, actions);
|
||||
return res
|
||||
} ]);
|
||||
Reference in New Issue
Block a user