Skip to content

Commit

Permalink
default redirect to doc
Browse files Browse the repository at this point in the history
  • Loading branch information
telminov committed May 3, 2016
1 parent c5456b9 commit 8c805ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging

from django.conf import settings
from django.shortcuts import redirect
from rest_framework.decorators import api_view, permission_classes
from rest_framework.response import Response
from rest_framework import status
Expand All @@ -13,6 +14,10 @@
logger = logging.getLogger('sms_service')


def index(request):
return redirect('/doc/')


@api_view(['POST'])
@permission_classes((CodePermission.decorate(code='SMS_SEND'),))
def send(request):
Expand Down

0 comments on commit 8c805ed

Please sign in to comment.