Sfoglia il codice sorgente

fix news and job_postings routes

Olivier Massot 1 anno fa
parent
commit
f319a7e761
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      models/Maestro/JobPosting.ts
  2. 1 1
      models/Maestro/News.ts

+ 1 - 1
models/Maestro/JobPosting.ts

@@ -7,7 +7,7 @@ import ApiModel from '~/models/ApiModel'
  * @see https://gitlab.2iopenservice.com/opentalent/maestro/-/blob/master/src/Entity/JobPosting/JobPosting.php?ref_type=heads
  */
 export default class JobPosting extends ApiModel {
-  static entity = 'job_postings'
+  static entity = 'public/job_postings'
 
   @Uid()
   declare id: number

+ 1 - 1
models/Maestro/News.ts

@@ -7,7 +7,7 @@ import ApiModel from '~/models/ApiModel'
  * @see https://gitlab.2iopenservice.com/opentalent/maestro/-/blob/master/src/Entity/News/News.php?ref_type=heads
  */
 export default class News extends ApiModel {
-  static entity = 'news'
+  static entity = 'public/news'
 
   @Uid()
   declare id: number | string