Skip to content

Commit

Permalink
feat: LBAC-1658 revue/sécu routes (#771)
Browse files Browse the repository at this point in the history
* feat: cleaning comment

* feat: conversion commentaires en tickets

* feat: converti en ticket

* feat: cleaning. scheme déjà fait

* feat: scheme déjà fait
  • Loading branch information
alanlr authored Nov 7, 2023
1 parent 799788f commit 545dd46
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions shared/routes/application.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,11 @@ export const zApplicationRoutes = {
securityScheme: null,
},
"/application/intentionComment": {
// TODO_SECURITY_FIX
path: "/application/intentionComment",
method: "post",
body: z
.object({
id: z.string(), // inutile de chiffrer l'id, rajouter un champ token qui contiendra l'id
id: z.string(),
iv: z.string(),
comment: z.string(),
intention: z.string(),
Expand Down
1 change: 0 additions & 1 deletion shared/routes/rome.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const zRomeRoutes = {
"/rome/detail/:rome": {
method: "get",
path: "/rome/detail/:rome",
// TODO filtrer la payload
params: z
.object({
rome: z.string(),
Expand Down
1 change: 0 additions & 1 deletion shared/routes/unsubscribe.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { IRoutesDef } from "./common.routes"

export const zUnsubscribeRoute = {
post: {
// TODO_SECURITY AB Vs. Marion + Abdellah + Léo !! fight !!
"/unsubscribe": {
method: "post",
path: "/unsubscribe",
Expand Down
1 change: 0 additions & 1 deletion shared/routes/updateLbaCompany.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { IRoutesDef } from "./common.routes"

export const zUpdateLbaCompanyRoutes = {
get: {
// TODO_SECURITY passer en session role is-admin et faire un formulaire (migrer en POST)
"/updateLBB/updateContactInfo": {
method: "get",
path: "/updateLBB/updateContactInfo",
Expand Down
4 changes: 0 additions & 4 deletions shared/routes/v1Jobs.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ export const zV1JobsRoutes = {
"/v1/jobs/provided/:jobId": {
method: "post",
path: "/v1/jobs/provided/:jobId",
// TODO_SECURITY_FIX vérifier le scope au moment de l'update du statut de l'offre
params: z
.object({
jobId: zObjectId,
Expand All @@ -481,7 +480,6 @@ export const zV1JobsRoutes = {
"/v1/jobs/canceled/:jobId": {
method: "post",
path: "/v1/jobs/canceled/:jobId",
// TODO_SECURITY_FIX vérifier le scope au moment de l'update du statut de l'offre
params: z
.object({
jobId: zObjectId,
Expand All @@ -506,7 +504,6 @@ export const zV1JobsRoutes = {
"/v1/jobs/extend/:jobId": {
method: "post",
path: "/v1/jobs/extend/:jobId",
// TODO_SECURITY_FIX vérifier le scope au moment de l'update du statut de l'offre
params: z
.object({
jobId: zObjectId,
Expand Down Expand Up @@ -551,7 +548,6 @@ export const zV1JobsRoutes = {
"/v1/jobs/:jobId": {
method: "patch",
path: "/v1/jobs/:jobId",
// TODO_SECURITY_FIX vérifier le scope au moment de l'update du statut de l'offre
params: z
.object({
jobId: zObjectId,
Expand Down

0 comments on commit 545dd46

Please sign in to comment.