20 lines
577 B
TypeScript
20 lines
577 B
TypeScript
import { Express } from "express"
|
|
import { userRoute } from "./users";
|
|
import { recipeRoute } from "./recipe";
|
|
import { collectionRoute } from "./collection";
|
|
import { ingredientRoute } from "./ingredient";
|
|
import { groceryListRoute } from "./groceryList";
|
|
|
|
export const routes = (app: Express, passport?: any) => {
|
|
console.log('routes called');
|
|
|
|
userRoute(app);
|
|
recipeRoute(app);
|
|
collectionRoute(app);
|
|
ingredientRoute(app);
|
|
groceryListRoute(app);
|
|
|
|
app.get('/hello', (req, res) => {
|
|
res.send({ message: "hello from the server!!" });
|
|
})
|
|
} |