Skip to content

Commit 2dde616

Browse files
committed
Update RandomAPI Beta url to point to domain
1 parent 4d44938 commit 2dde616

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

routes/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function genUser(req, res, version) {
8888
clients[ip] += Number(req.query.results);
8989
}
9090

91-
return legRequest(`https://beta.randomapi.com/api/${legacy[version].hash}?noinfo&${qs.stringify(req.query)}`, (err, ret) => {
91+
return legRequest(`https://api.randomapi.com/${legacy[version].hash}?noinfo&${qs.stringify(req.query)}`, (err, ret) => {
9292
if (req.query.fmt === 'json') {
9393
res.setHeader('Content-Type', 'application/json');
9494
} else if (req.query.fmt === 'xml') {

views/pages/index.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
data-caps="false"></li>
4646
</ul>
4747
</div>
48-
48+
4949
<% include ../snippets/ads %>
5050

5151
<section>
@@ -66,7 +66,7 @@ $.ajax({
6666
<h2>Sponsored</h2>
6767
<h3>RandomAPI</h3>
6868
<p>Want to create your own customized data generator for your application?<br>Check out our other service RandomAPI!</p>
69-
<button id="learnmore" class="button" onClick="window.open('http://beta.randomapi.com');">Learn More</button>
69+
<button id="learnmore" class="button" onClick="window.open('https://randomapi.com');">Learn More</button>
7070
</section>
7171

7272
<section>

0 commit comments

Comments
 (0)