Skip to content

Commit

Permalink
开启为前端
Browse files Browse the repository at this point in the history
  • Loading branch information
tDaem committed Jul 15, 2023
1 parent 7b57242 commit a286cd7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/main/webapp/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ import { ErrorComponent } from './layouts/error/error.component';
export class AppModule {
constructor(applicationConfigService: ApplicationConfigService, iconLibrary: FaIconLibrary, dpConfig: NgbDatepickerConfig) {
applicationConfigService.setEndpointPrefix(SERVER_API_URL);
applicationConfigService.setMicrofrontend();
registerLocaleData(locale);
iconLibrary.addIcons(...fontAwesomeIcons);
dpConfig.minDate = { year: dayjs().subtract(100, 'year').year(), month: 1, day: 1 };
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="description" content="Description for JHipsterRegistry" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<base href="/" />
<base href="/jhipster-registry/" />
<link rel="icon" href="favicon.ico" />
<link rel="manifest" href="manifest.webapp" />
<link rel="stylesheet" href="content/css/loading.css" />
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/swagger-ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
headers: { Authorization: getBearerToken() },
};

const baseUrl = '/v3/api-docs';
const baseUrl = '/jhipster-registry/v3/api-docs';
let urls;

if (!urls || urls.length === 0) {
const response = await axios.get('/management/jhiopenapigroups', axiosConfig);
const response = await axios.get('/jhipster-registry/management/jhiopenapigroups', axiosConfig);
if (Array.isArray(response.data)) {
urls = response.data.map(({ group, description }) => ({ name: description, url: `${baseUrl}/${group}` }));
} else {
Expand Down

0 comments on commit a286cd7

Please sign in to comment.