Added optional authentication

This commit is contained in:
Henry Whitaker
2020-08-21 17:31:43 +01:00
parent cd87a902a7
commit e10b4dccde
31 changed files with 149588 additions and 107 deletions

View File

@@ -148,7 +148,7 @@ export default class Restore extends Component {
uploadFile = () => {
var data = { data: this.state.data, format: this.state.format };
var url = 'api/restore';
var url = 'api/restore?token=' + window.token;
Axios.post(url, data)
.then((resp) => {