mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 21:19:16 +02:00
7 lines
177 B
Python
7 lines
177 B
Python
from rest_framework.routers import SimpleRouter
|
|
|
|
|
|
class OptionalSlashRouter(SimpleRouter):
|
|
def __init__(self):
|
|
super().__init__()
|
|
self.trailing_slash = "/?"
|