from django.contrib import admin from django.urls import path, include from .views.GetIPDataView import GetIPDataView from .views.BaiduFanyiView import ( BaiduFanyiView, AllLangTypeViews, AutoLangTypeViews, RecognizeLangTypeViews, PictureRecognizeViews, SpeechRecognitionView, TaskResultView, PictureLangTypeViews, SpeechLangTypeViews, TranslateUsageView, ) from user.views.slider_captcha import SliderCaptchaGenerateView, SliderCaptchaVerifyView from user.views.captcha import ImageCaptchaAPIView urlpatterns = [ path('getIpData/', GetIPDataView.as_view()), path('baiduFanyi/', BaiduFanyiView.as_view()), path('baiduFanyi/getAllLangType/', AllLangTypeViews.as_view()), path('baiduFanyi/getAutoLangType/', AutoLangTypeViews.as_view()), path('baiduFanyi/getPictureLangType/', PictureLangTypeViews.as_view()), path('baiduFanyi/getSpeechLangType/', SpeechLangTypeViews.as_view()), path('baiduFanyi/recognizeLangType/', RecognizeLangTypeViews.as_view()), path('baiduFanyi/pictureRecognize/', PictureRecognizeViews.as_view()), path('baiduFanyi/speechRecognition/', SpeechRecognitionView.as_view()), path('baiduFanyi/task//', TaskResultView.as_view()), path('baiduFanyi/usage/', TranslateUsageView.as_view()), path('tool/', include('tool.urls')), path('weather/', include('weather.urls')), path('air-quality/', include('air_quality.urls')), path('currency/', include('currency.urls')), path('captcha/generate/', SliderCaptchaGenerateView.as_view()), path('captcha/verify/', SliderCaptchaVerifyView.as_view()), path('image-captcha/', ImageCaptchaAPIView.as_view()), path('shorturl/', include('shorturl.urls')), ]