add fileentity controller
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2025-12-18 01:13:19 +07:00
parent e2747fc999
commit f3aa6324c2
15 changed files with 447 additions and 345 deletions
@@ -0,0 +1,28 @@
package ru.soune.nocopy.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import ru.soune.nocopy.handler.*;
import java.util.HashMap;
import java.util.Map;
@Configuration
public class HandlerConfig {
@Bean
public Map<Integer, RequestHandler> handlers(
RegRequestHandler reg,
LoginRequestHandler login,
FileUploadHandler upload,
FileEntityHandler file
) {
Map<Integer, RequestHandler> map = new HashMap<>();
map.put(20001, login);
map.put(20002, reg);
map.put(20004, upload);
map.put(20005, file);
return map;
}
}