1
0
mirror of https://github.com/Decicus/DecAPI-Docs.git synced 2024-11-25 22:02:32 +01:00

Fix certain endpoints that shouldn't be used for bots

This commit is contained in:
Alex Thomassen 2017-03-10 13:45:19 +01:00
parent e1b5dc4cf4
commit 2e18861f4c
3 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,7 @@ $(document).ready(function() {
$('pre#http strong', body).html(method);
$('pre#http code', body).html(baseUrl + data.base_path + route);
if (method === 'GET') {
if (method === 'GET' && (typeof end.bots === 'undefined' || end.bots === true)) {
var bots = $('#bots', body);
bots.removeClass('hidden');
$('#url', bots).html(baseUrl + data.base_path + route);

View File

@ -7,3 +7,4 @@ endpoints:
qs:
notes:
- 'Provides an RSS feed of a specified ASKfm users answers.'
bots: false

View File

@ -5,3 +5,4 @@ endpoints:
qs:
notes:
- 'Returns an RSS feed of the latest <a href="https://jobs.lever.co/twitch/"><i class="fa fa-1x fa-twitch"></i> Twitch jobs listings</a>.'
bots: false