Skip to content

Commit

Permalink
Fixed swagger 404
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Jan 17, 2025
1 parent d0d5999 commit 41ea2ae
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 33 deletions.
7 changes: 0 additions & 7 deletions cloc_definitions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1061,13 +1061,6 @@ Objective C
filter call_regexp_common C++
3rd_gen_scale 2.96
end_of_line_continuation \\$
Objective C++
filter rm_comments_in_strings " /* */
filter rm_comments_in_strings " //
filter call_regexp_common C++
extension mm
3rd_gen_scale 2.96
end_of_line_continuation \\$
Octave
filter remove_matches ^\s*#
filter remove_inline #.*$
Expand Down
11 changes: 9 additions & 2 deletions myconext-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,18 @@
<artifactId>logstash-logback-encoder</artifactId>
<version>6.4</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.8.0</version>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>2.8.3</version>
</dependency>

<!-- <dependency>-->
<!-- <groupId>org.springdoc</groupId>-->
<!-- <artifactId>springdoc-openapi-ui</artifactId>-->
<!-- <version>1.8.0</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ public SecurityFilterChain shibbolethSecurityFilterChain(
"/myconext/api/idp/**",
"/myconext/api/sp/create-from-institution",
"/myconext/api/sp/create-from-institution/**",
"/myconext/api/sp/idin/issuers")
"/myconext/api/sp/idin/issuers",
"myconext/api/swagger-ui/**")
.permitAll())
.authorizeHttpRequests(authz -> authz.requestMatchers(
"/myconext/api/servicedesk/**"
Expand Down
File renamed without changes.
28 changes: 5 additions & 23 deletions servicedesk-gui/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,20 @@ import {Loader} from "@surfnet/sds";
import './App.scss'
// import {useNavigate} from "react-router-dom";
// import {useAppStore} from "./stores/AppStore.js";
import {configuration, me} from "./api/index.js";
import {configuration} from "./api/index.js";
import {useAppStore} from "./stores/AppStore.js";

const App = () => {

const [loading, setLoading] = useState(true);

// async function fetchConfig() {
// try {
// setConf(await configuration());
// setLoading(false)
// } catch (e) {
// console.log(e);
// }
// }
useEffect(() => {
// fetchConfig();
// configurationAsync().then(res => {
// setConf(res);

// setLoading(false);
// })
configuration().then(res => {
useAppStore.setState(() => ({config: res}));
me().then(json => {
useAppStore.setState(() => ({user: json, authenticated: true}));
setLoading(false);
// const {user, config} = useAppStore(state => state);
});

useAppStore.setState(() => ({config: res, authenticated: res.authenticated, user: res.user}));
setLoading(false);
});

}, []);// eslint-disable-line react-hooks/exhaustive-deps
}, []);

if (loading) {
return <Loader/>
Expand Down

0 comments on commit 41ea2ae

Please sign in to comment.