frontend/src/services/migrator/abstractMigrationService.js
konrad 9b232c7d4f Add Wunderlist migration (#46)
Complete migration flow

Add migration in progress animation

Add handling wunderlist migration flow

Basic migration init structure

Add migrator structure

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: vikunja/frontend#46
2020-01-19 19:23:06 +00:00

20 lines
554 B
JavaScript

import AbstractService from '../abstractService'
// This service builds on top of the abstract service and basically just hides away method names.
// It enables migration services to be created with minimal overhead and even better method names.
export default class AbstractMigrationService extends AbstractService {
constructor(serviceUrlKey) {
super({
update: '/migration/'+serviceUrlKey+'/migrate',
get: '/migration/'+serviceUrlKey+'/auth',
})
}
getAuthUrl() {
return this.get({})
}
migrate(data) {
return this.update(data)
}
}