mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-21 21:33:08 +01:00
Removed auth
Doesn't really need user account, no sensitive data held in DB, plus routes that do stuff are rate limited anyway. Shouldn't be accessible to untrusted users (i.e. should be behind a RP that handles user auth)
This commit is contained in:
@@ -12,7 +12,6 @@ export default class HistoryGraph extends Component {
|
||||
|
||||
this.state = {
|
||||
days: 30,
|
||||
token: this.props.token,
|
||||
duData: {},
|
||||
duOptions: {},
|
||||
pingData: {},
|
||||
@@ -31,7 +30,7 @@ export default class HistoryGraph extends Component {
|
||||
}
|
||||
|
||||
getData = (days = this.state.days) => {
|
||||
var url = '/api/speedtest/time/' + days + '?token=' + this.state.token.access_token;
|
||||
var url = '/api/speedtest/time/' + days;
|
||||
|
||||
Axios.get(url)
|
||||
.then((resp) => {
|
||||
|
||||
Reference in New Issue
Block a user