class SystemResourcesController {

    private final ResourceManager resourceManager;

    @GetMapping("/{type}")
    @SneakyThrows
    public Flux<String> getResources(@PathVariable String type) {<FILL_FUNCTION_BODY>}


    @GetMapping("/{id}.d.ts")
    @SneakyThrows
    @Authorize
    public Mono<String> getTypeScriptResource(@PathVariable String id) {

        return resourceManager
            .getResources(
                TypeScriptDeclareResourceProvider.TYPE,
                Collections.singleton(id))
            .map(Resource::asString)
            .singleOrEmpty();
    }
}

        return Authentication
            .currentReactive()
            .filter(auth -> "admin".equals(auth.getUser().getUsername()))
            .switchIfEmpty(Mono.error(UnAuthorizedException::new))
            .flatMapMany(auth -> resourceManager.getResources(type))
            .map(Resource::asString);
    
<no_super_class>