misc/breaking: remove trailing slashes from endpoints
This commit is contained in:
@ -24,10 +24,11 @@ class RandMsg(FastAPI):
|
||||
|
||||
self.endpoint_name = "randmsg"
|
||||
|
||||
app.add_api_route(f"/{self.endpoint_name}/", self.randmsg_handler, methods=["POST"])
|
||||
app.add_api_route(f"/{self.endpoint_name}", self.randmsg_handler, methods=["POST"])
|
||||
|
||||
async def randmsg_handler(self, data: RandMsgRequest = None):
|
||||
"""
|
||||
/randmsg
|
||||
Get a randomly generated message
|
||||
"""
|
||||
random.seed()
|
||||
|
Reference in New Issue
Block a user