Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8cfa048e5a | |||
| c692e4cf43 |
+1
-1
@@ -1,2 +1,2 @@
|
||||
parameters:
|
||||
app.version: '0.4.18'
|
||||
app.version: '0.4.19'
|
||||
|
||||
@@ -25,7 +25,7 @@ export function useTimeEntryService() {
|
||||
if (params.tag) {
|
||||
query['tags[]'] = `/api/task_tags/${params.tag}`
|
||||
}
|
||||
const data = await api.get<HydraCollection<TimeEntry>>('/time_entries', query)
|
||||
const data = await api.get<HydraCollection<TimeEntry>>('/time_entries/range', query)
|
||||
return extractHydraMembers(data)
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,13 @@ use Symfony\Component\Serializer\Attribute\Groups;
|
||||
#[ApiResource(
|
||||
operations: [
|
||||
new GetCollection(security: "is_granted('ROLE_USER')"),
|
||||
new GetCollection(
|
||||
name: 'time_entries_range',
|
||||
uriTemplate: '/time_entries/range',
|
||||
description: 'List time entries for a bounded date range without pagination (used by the time-tracking calendar)',
|
||||
paginationEnabled: false,
|
||||
security: "is_granted('ROLE_USER')",
|
||||
),
|
||||
new GetCollection(
|
||||
name: 'active_time_entry',
|
||||
uriTemplate: '/time_entries/active',
|
||||
|
||||
Reference in New Issue
Block a user