BETTERZON-49: Creating Module for Crawler

This commit is contained in:
Patrick Müller 2021-04-01 10:34:35 +02:00
parent 3a3422ea05
commit 05d4795f9d
4 changed files with 10 additions and 6 deletions

View File

@ -4,6 +4,7 @@
<modules>
<module fileurl="file://$PROJECT_DIR$/Backend/Backend.iml" filepath="$PROJECT_DIR$/Backend/Backend.iml" />
<module fileurl="file://$PROJECT_DIR$/Betterzon.iml" filepath="$PROJECT_DIR$/Betterzon.iml" />
<module fileurl="file://$PROJECT_DIR$/Crawler/Crawler.iml" filepath="$PROJECT_DIR$/Crawler/Crawler.iml" />
<module fileurl="file://$PROJECT_DIR$/CucumberTests/CucumberTests.iml" filepath="$PROJECT_DIR$/CucumberTests/CucumberTests.iml" />
<module fileurl="file://$PROJECT_DIR$/Frontend/Frontend.iml" filepath="$PROJECT_DIR$/Frontend/Frontend.iml" />
</modules>

View File

@ -19,7 +19,7 @@ export const categoriesRouter = express.Router();
* Controller Definitions
*/
// GET items/
// GET categories/
categoriesRouter.get('/', async (req: Request, res: Response) => {
try {
@ -31,7 +31,7 @@ categoriesRouter.get('/', async (req: Request, res: Response) => {
}
});
// GET items/:id
// GET categories/:id
categoriesRouter.get('/:id', async (req: Request, res: Response) => {
const id: number = parseInt(req.params.id, 10);
@ -50,7 +50,7 @@ categoriesRouter.get('/:id', async (req: Request, res: Response) => {
}
});
// GET items/:name
// GET categories/search/:term
categoriesRouter.get('/search/:term', async (req: Request, res: Response) => {
const term: string = req.params.term;

View File

@ -19,7 +19,7 @@ export const productsRouter = express.Router();
* Controller Definitions
*/
// GET items/
// GET products/
productsRouter.get('/', async (req: Request, res: Response) => {
try {
@ -31,7 +31,7 @@ productsRouter.get('/', async (req: Request, res: Response) => {
}
});
// GET items/:id
// GET products/:id
productsRouter.get('/:id', async (req: Request, res: Response) => {
const id: number = parseInt(req.params.id, 10);
@ -50,7 +50,7 @@ productsRouter.get('/:id', async (req: Request, res: Response) => {
}
});
// GET items/:name
// GET products/search/:term
productsRouter.get('/search/:term', async (req: Request, res: Response) => {
const term: string = req.params.term;
@ -69,6 +69,8 @@ productsRouter.get('/search/:term', async (req: Request, res: Response) => {
}
});
// GET products/bestDeals
// POST items/

1
Crawler/requirements.txt Normal file
View File

@ -0,0 +1 @@
pymysql