chore: rename server to api (#7342)
This commit is contained in:
parent
6bee97eb26
commit
fdbe4c2ca6
554 changed files with 39 additions and 43 deletions
0
apps/api/plane/web/__init__.py
Normal file
0
apps/api/plane/web/__init__.py
Normal file
5
apps/api/plane/web/apps.py
Normal file
5
apps/api/plane/web/apps.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class WebConfig(AppConfig):
|
||||
name = "plane.web"
|
||||
4
apps/api/plane/web/urls.py
Normal file
4
apps/api/plane/web/urls.py
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
from django.urls import path
|
||||
from plane.web.views import robots_txt, health_check
|
||||
|
||||
urlpatterns = [path("robots.txt", robots_txt), path("", health_check)]
|
||||
9
apps/api/plane/web/views.py
Normal file
9
apps/api/plane/web/views.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
from django.http import HttpResponse, JsonResponse
|
||||
|
||||
|
||||
def health_check(request):
|
||||
return JsonResponse({"status": "OK"})
|
||||
|
||||
|
||||
def robots_txt(request):
|
||||
return HttpResponse("User-agent: *\nDisallow: /", content_type="text/plain")
|
||||
Loading…
Add table
Add a link
Reference in a new issue