Cleaned up proj directory by removing extra proj dir, updated defenses, effects, and main page with new formatting for better appearance

This commit is contained in:
Michael Roy
2024-05-19 02:33:30 -04:00
parent b422b98123
commit 844ed6736c
34 changed files with 135 additions and 115 deletions

26
backend/api_app/views.py Normal file
View File

@@ -0,0 +1,26 @@
from django.shortcuts import render
from django.core.exceptions import ValidationError
import os
import requests
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.status import (
HTTP_200_OK,
HTTP_204_NO_CONTENT,
HTTP_201_CREATED,
HTTP_400_BAD_REQUEST
)
from .utils import get_sentry
sentry_api_key = os.environ.get("SENTRY_API_KEY")
# Create your views here.
class Sentry(APIView):
def get(self, request):
return get_sentry()
class OpenAI(APIView):
pass