video14
#10
Replies: 1 comment 7 replies
-
Yeah. Planning to dig into this in the next video. I think the main problem is the config in the router. If you update as following, it should work. Note the (def routes
(route/expand-routes
#{{:app-name :cheffy :schema :http :host "localhost"}
["/recipes" :get list-recipes :route-name :list-recipes]
["/recipes" :post upsert-recipe :route-name :create-recipe]
["/recipes/:recipe-id" :put upsert-recipe :route-name :update-recipe]}))
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At 0:15, you mentioned that when going to localhost:3000, everything will be working.
However, after starting the server, the routes don't seem to be working. For instance, GET /recipes returns 404 "Not Found", instead of "list recipes". Would you mind checking if you are also seeing the same thing? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions