cleanup
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env python3.12
|
||||
|
||||
|
||||
from fastapi import FastAPI
|
||||
from pydantic import BaseModel
|
||||
|
||||
@@ -31,7 +30,7 @@ class Counters(FastAPI):
|
||||
|
||||
self.endpoints = {
|
||||
"counters/get": self.get_counter_handler,
|
||||
"counters/increment": self.increment_counter_handler
|
||||
# "counters/increment": self.increment_counter_handler
|
||||
#tbd
|
||||
}
|
||||
|
||||
@@ -55,14 +54,12 @@ class Counters(FastAPI):
|
||||
|
||||
}
|
||||
|
||||
async def increment_counter_handler(self, data: ValidCounterIncrementRequest):
|
||||
"""
|
||||
/counters/increment/
|
||||
Increment counter value (requires PUT KEY)
|
||||
"""
|
||||
|
||||
return {
|
||||
|
||||
}
|
||||
# async def increment_counter_handler(self, data: ValidCounterIncrementRequest):
|
||||
# """
|
||||
# /counters/increment/
|
||||
# Increment counter value (requires PUT KEY)
|
||||
# """
|
||||
|
||||
# return {
|
||||
|
||||
# }
|
||||
|
||||
Reference in New Issue
Block a user