/*
 */
package org.datadryad.rest.storage.resolvers;

import org.datadryad.rest.storage.json.ManuscriptJSONStorageImpl;
import com.sun.jersey.spi.inject.SingletonTypeInjectableProvider;
import java.io.File;
import javax.ws.rs.core.Context;
import javax.ws.rs.ext.Provider;
import org.datadryad.rest.storage.AbstractManuscriptStorage;

/**
 *
 * @author Dan Leehr <dan.leehr@nescent.org>
 */
@Provider
public class ManuscriptStorageResolver extends SingletonTypeInjectableProvider<Context, AbstractManuscriptStorage> {
    private static final String PATH = "/tmp/dryad_rest_manuscripts";
    public ManuscriptStorageResolver() {
        super(AbstractManuscriptStorage.class, new ManuscriptJSONStorageImpl(new File(PATH)));
        File directory = new File(PATH);
        if(!directory.exists()) {
            directory.mkdir();
        }
    }
}

@@ -570,20 +570,8 @@
 rest
-_manuscripts
 %22;%0A 

Change Manuscript JSON storage to same basedir