Skip to content

Commit 5153909

Browse files
committed
Fix missing slash in action routes
1 parent 287496e commit 5153909

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

time_tracker_api/time_entries/time_entry_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def put(self, id):
112112
return ns.payload
113113

114114

115-
@ns.route('<string:id>/stop')
115+
@ns.route('/<string:id>/stop')
116116
@ns.response(404, 'Running time entry not found')
117117
@ns.param('id', 'The unique identifier of a running time entry')
118118
class StopTimeEntry(Resource):
@@ -123,7 +123,7 @@ def post(self, id):
123123
return None, 204
124124

125125

126-
@ns.route('<string:id>/continue')
126+
@ns.route('/<string:id>/continue')
127127
@ns.response(404, 'Stopped time entry not found')
128128
@ns.param('id', 'The unique identifier of a stopped time entry')
129129
class ContinueTimeEntry(Resource):

0 commit comments

Comments
 (0)