Skip to content

Commit

Permalink
Fixed http methods of SessionRoutes#deleteCurrent & `SessionRoutes#…
Browse files Browse the repository at this point in the history
…deleteById` (#20)
  • Loading branch information
jasonlessenich committed Apr 5, 2024
1 parent 4289ab8 commit 8f8b701
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.8.1
- Fixed http methods of `SessionRoutes#deleteCurrent` & `SessionRoutes#deleteById`

## 0.8
- Cache accounts & currencies on startup
- Added `Restrr#getAccounts`
Expand Down
4 changes: 2 additions & 2 deletions lib/src/api/requests/route_definitions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class SessionRoutes {
const SessionRoutes._();

static final Route getCurrent = Route.get('/session/current');
static final Route deleteCurrent = Route.post('/session/current');
static final Route deleteCurrent = Route.delete('/session/current');
static final Route getById = Route.get('/session/{sessionId}');
static final Route deleteById = Route.get('/session/{sessionId}');
static final Route deleteById = Route.delete('/session/{sessionId}');
static final Route getAll = Route.get('/session');
static final Route deleteAll = Route.delete('/session');
static final Route create = Route.post('/session');
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: restrr
description: Dart package which allows to communicate with the financrr REST API.
version: 0.8.0
version: 0.8.1
repository: https://github.com/financrr/restrr

environment:
Expand Down

0 comments on commit 8f8b701

Please sign in to comment.