package com.example.pdfservice.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Reads "app.file.storage-dir" from application.properties.
 * This is the ROOT directory on disk where uploaded PDFs are physically kept.
 * The full path of each individual file is what gets persisted in the DB.
 */
@ConfigurationProperties(prefix = "app.file")
public class FileStorageProperties {

    private String storageDir;

    public String getStorageDir() {
        return storageDir;
    }

    public void setStorageDir(String storageDir) {
        this.storageDir = storageDir;
    }
}
