Skip to content

Commit 9b82525

Browse files
authored
chore(mm2026): disable incrementing counter API endpoints (#136)
* feat(mm2026): allow counter values to be fetched * feat(mm2026): disable increment/decrement API counters
1 parent 53e07a1 commit 9b82525

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/mountain_madness/_2026/urls.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ async def get_all_counters():
1919
return CounterResponse(**mm_counter.get_all())
2020

2121

22-
@router.post(
23-
"/good",
24-
description="Increment the good counter",
25-
response_description="Increment the good counter",
26-
response_model=CounterResponse,
27-
operation_id="mm_good_increment",
28-
)
29-
async def increment_good():
30-
return CounterResponse(**mm_counter.increment("good"))
31-
32-
33-
@router.post(
34-
"/evil",
35-
description="Increment the evil counter",
36-
response_description="Increment the evil counter",
37-
response_model=CounterResponse,
38-
operation_id="mm_evil_increment",
39-
)
40-
async def increment_evil():
41-
return CounterResponse(**mm_counter.increment("evil"))
22+
# @router.post(
23+
# "/good",
24+
# description="Increment the good counter",
25+
# response_description="Increment the good counter",
26+
# response_model=CounterResponse,
27+
# operation_id="mm_good_increment",
28+
# )
29+
# async def increment_good():
30+
# return CounterResponse(**mm_counter.increment("good"))
31+
#
32+
#
33+
# @router.post(
34+
# "/evil",
35+
# description="Increment the evil counter",
36+
# response_description="Increment the evil counter",
37+
# response_model=CounterResponse,
38+
# operation_id="mm_evil_increment",
39+
# )
40+
# async def increment_evil():
41+
# return CounterResponse(**mm_counter.increment("evil"))

0 commit comments

Comments
 (0)