forked from vikunja/frontend
konrad
9b232c7d4f
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
20 lines
554 B
JavaScript
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)
|
|
}
|
|
} |