Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LidiaKovac committed May 6, 2024
1 parent c23e77e commit 23bc808
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ <h4 class="mt-4">Example data:</h4>
data: [
{
"name": "Aaron Bass",
"img": "https://supernatural-quotes-api.cyclic.app/images/350px-Aaron_Bass.png",
"img": "https://supernatural-api.onrender.com/images/350px-Aaron_Bass.png",
"actor": [
"Adam Rose"
],
Expand Down Expand Up @@ -290,7 +290,7 @@ <h5>Example data:</h5>
<pre><code class="language-json">
{
"name": "Abaddon",
"img": "https://supernatural-quotes-api.cyclic.app/images/350px-Abaddon001.png",
"img": "https://supernatural-api.onrender.com/images/350px-Abaddon001.png",
"actor": [
"Alaina Huffman",
"Sharon Bell",
Expand Down Expand Up @@ -445,7 +445,7 @@ <h5 class="mt-4">Example data:</h5>
"chars": [
{
"name": "Sam Winchester",
"img": "https://supernatural-quotes-api.cyclic.app/images/350px-SamWinchester.png",
"img": "https://supernatural-api.onrender.com/images/350px-SamWinchester.png",
"actor": [
"Jared Padalecki",
"Alex Ferris",
Expand All @@ -462,7 +462,7 @@ <h5 class="mt-4">Example data:</h5>
},
{
"name": "Dean Winchester",
"img": "https://supernatural-quotes-api.cyclic.app/images/350px-DeanWinchester.png",
"img": "https://supernatural-api.onrender.com/images/350px-DeanWinchester.png",
"actor": [
"Jensen Ackles",
"Hunter Brochu",
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h2> <a class="btn btn-danger rounded-pill" title="Supernatural API | Docs" href
</div>
<div class="col-lg-6 col-md-12">
<pre>
fetch("https://supernatural-quotes-api.cyclic.app/<strong class="text-danger">quotes/random</strong>")
fetch("https://supernatural-api.onrender.com/<strong class="text-danger">quotes/random</strong>")
.then(res => res.json())
.then(data => console.log(data))
</pre>
Expand Down Expand Up @@ -117,8 +117,8 @@ <h2> <a class="btn btn-danger rounded-pill" title="Supernatural API | Docs" href
"@context": "https://schema.org/",
"@type": "WebAPI",
"name": "Supernatural API | Get QUOTES, CHARACTERS and more",
"availableChannel": "https://supernatural-quotes-api.cyclic.app/quotes"
"url": "https://supernatural-quotes-api.cyclic.app/quotes"
"availableChannel": "https://supernatural-api.onrender.com/quotes"
"url": "https://supernatural-api.onrender.com/quotes"
"description": "The Supernatural API is the first unofficial source for developers who are looking to build a page based on Supernatural data.",
"documentation": "https://lidiakovac.github.io/supernatural-api/docs.html",
"author": {
Expand Down
4 changes: 2 additions & 2 deletions src/services/quotes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ quotesRouter.get("/", async (req, res, next) => {
res.send({
data: result,
next:
"https://supernatural-quotes-api.cyclic.app/quotes?page=" +
"https://supernatural-api.onrender.com/quotes?page=" +
(isNaN(Number(req.query.page) + 1) ? 2 : Number(req.query.page) + 1),
prev:
Number(req.query.page) > 1
? "https://supernatural-quotes-api.cyclic.app/quotes?page=" +
? "https://supernatural-api.onrender.com/quotes?page=" +
(Number(req.query.page) - 1)
: null,
count: data.length,
Expand Down

0 comments on commit 23bc808

Please sign in to comment.