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