add public api

- generalize elixire adapter into http adapter
 - fix ping adapter not sending a tuple
 - add ServiceWorker.process_work to insert results into the database
This commit is contained in:
Luna Mendes 2018-07-09 02:48:44 -03:00
parent 359c62efd6
commit d92c09772e
No known key found for this signature in database
GPG key ID: 7D950EEE259CE92F
9 changed files with 95 additions and 29 deletions

View file

@ -3,7 +3,8 @@ import React, { Component } from 'react';
import Service from './Service.js';
import './App.css';
const ENDPOINT = 'https://elstatus.stayathomeserver.club/api/status'
// const ENDPOINT = 'https://elstatus.stayathomeserver.club/api/status'
const ENDPOINT = 'http://localhost:8069/api/status'
export default class App extends Component {
state = {