fix: enforce mime_type='text/html' inside FastMCP resource decorators and release 0.2.8
This commit is contained in:
@@ -68,7 +68,7 @@ async def generate():
|
||||
|
||||
return decorator
|
||||
|
||||
def resource(self, path):
|
||||
def resource(self, path, **kwargs):
|
||||
def decorator(func):
|
||||
self.resources[path] = func
|
||||
return func
|
||||
@@ -164,7 +164,7 @@ async def generate():
|
||||
|
||||
return decorator
|
||||
|
||||
def resource(self, path):
|
||||
def resource(self, path, **kwargs):
|
||||
def decorator(func):
|
||||
self.resources[path] = func
|
||||
return func
|
||||
|
||||
Reference in New Issue
Block a user