removed CSV listing if not CSV present
when reading sources, CSV file were being listed as 'none' when going through the loop and no file was present. commented that part out so 'none' is not being repeated
This commit is contained in:
parent
7cdd284968
commit
c2be80c005
1 changed files with 54 additions and 52 deletions
|
@ -1,6 +1,6 @@
|
|||
@extends('frame')
|
||||
@section('title', 'The Bad Space|About')
|
||||
@section('main-content')
|
||||
@section('main-content')
|
||||
@parent
|
||||
<section>
|
||||
<article>
|
||||
|
@ -40,7 +40,9 @@
|
|||
@if($source->format == 'csv')
|
||||
<li><a href="{{$source->url}}">{{$source->url}}</a></li>
|
||||
@else
|
||||
<!--
|
||||
<li>None</li>
|
||||
-->
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
|
@ -58,7 +60,7 @@
|
|||
<h3>API</h3>
|
||||
<p>The Bad Space has a public api that can be used to search the database programatically and return results in the JSON format. The API can be accsess at <code>https://thebad.space/api/v1/search</code> by posting a JSON object with the following format: <code>{"url":"search.url"}</code>. Data from API request will be returned in the follow format:</p>
|
||||
|
||||
<pre>
|
||||
<pre>
|
||||
<code>{
|
||||
data:{
|
||||
"listingCount":1,
|
||||
|
@ -76,4 +78,4 @@
|
|||
</pre>
|
||||
</article>
|
||||
</section>
|
||||
@endsection
|
||||
@endsection
|
Loading…
Add table
Reference in a new issue