Skip to content

Commit d488aaf

Browse files
committed
#1527 - rollback new files changes
1 parent 32cec27 commit d488aaf

6 files changed

Lines changed: 1 addition & 74 deletions

File tree

src/backend/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import changeRequestsRouter from './src/routes/change-requests.routes';
1111
import descriptionBulletsRouter from './src/routes/description-bullets.routes';
1212
import tasksRouter from './src/routes/tasks.routes';
1313
import reimbursementRequestsRouter from './src/routes/reimbursement-requests.routes';
14-
import materialsController from './src/routes/materials.routes';
1514

1615
const app = express();
1716
const port = process.env.PORT || 3001;
@@ -53,7 +52,6 @@ app.use('/change-requests', changeRequestsRouter);
5352
app.use('/description-bullets', descriptionBulletsRouter);
5453
app.use('/tasks', tasksRouter);
5554
app.use('/reimbursement-requests', reimbursementRequestsRouter);
56-
app.use('/materials', materialsController);
5755
app.use('/', (_req, res) => {
5856
res.json('Welcome to FinishLine');
5957
});

src/backend/src/controllers/materials.controllers.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/backend/src/routes/materials.routes.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/backend/src/services/materials.services.ts

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/backend/src/utils/errors.utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class DeletedException extends HttpException {
2424
* @param id the id of the thing that is deleted
2525
*/
2626
constructor(name: ExceptionObjectNames, id: number | string) {
27-
super(400, `${name} with id: ${id} has been deleted already!`);
27+
super(404, `${name} with id: ${id} has been deleted already!`);
2828
}
2929
}
3030

src/backend/tests/materials.controllers.test.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)