grammatical-error-correctio.../backend/translation/urls.py
Wojciech Jarmosz b586f3c7ed GEC-backend
2022-06-01 10:19:32 +02:00

11 lines
335 B
Python

from django.urls import include, path
from rest_framework.urlpatterns import format_suffix_patterns
from .views import TranslationAPIView, xml_translate
urlpatterns = [
path("translate", TranslationAPIView.as_view()),
path("translate-xml", xml_translate),
]
urlpatterns = format_suffix_patterns(urlpatterns, allowed=['xml'])