Skip to content

Commit 91f519c

Browse files
committed
Improve home and api root pages
1 parent 143da06 commit 91f519c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

demo/api/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
def root(request):
3535
return HttpResponse(
36+
"<h2>ScanAPI Demo API</h2>"
3637
"<a href=https://demo.scanapi.dev/api/health>https://demo.scanapi.dev/api/health</a> (GET)<br>"
3738
"<a href=https://demo.scanapi.dev/api/devs>https://demo.scanapi.dev/api/devs</a> (GET, POST)<br>"
3839
"<a href=https://demo.scanapi.dev/api/devs?newOpportunities=true>https://demo.scanapi.dev/api/devs?newOpportunities=true</a> (GET)<br>"

demo/urls.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
def home(request):
66
return HttpResponse(
7-
"Welcome to ScanAPI Demo."
8-
"\n\nAccess the demo api at: https://demo.scanapi.dev/api"
7+
"<h2>ScanAPI Demo</h2>"
8+
"<p>This is an application to help showing how ScanAPI works</p>"
9+
"<p>Access the demo API at: <a href=https://demo.scanapi.dev/api>https://demo.scanapi.dev/api</a></p>"
910
)
1011

1112

0 commit comments

Comments
 (0)