fine, i'll use the f-string
This commit is contained in:
@ -16,7 +16,7 @@ class RandMsg(FastAPI):
|
||||
|
||||
self.endpoint_name = "randmsg"
|
||||
|
||||
app.add_api_route("/%s/" % 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):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user