Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't run from example #1980

Closed
nikitavoloboev opened this issue Jan 7, 2023 · 4 comments
Closed

Doesn't run from example #1980

nikitavoloboev opened this issue Jan 7, 2023 · 4 comments

Comments

@nikitavoloboev
Copy link

I followed quick start example with just a change to the name and model. My repo here:

https://github.com/nikitavoloboev/test/tree/main/chiselstrike

When I run it with pnpm run dev or npm run dev. And then run curl command in readme. I get this:

curl -X POST -d '{"title": "chiselstrike", "url": "https://github.com/chiselstrike/chiselstrike"}' localhost:8080/dev/links
There is no route for "/links"⏎ 
@nikitavoloboev
Copy link
Author

It could be that I mistook where I should create endpoints folder. In readme it doesn't really say where to make it so I thought it would be at root.

@penberg
Copy link
Contributor

penberg commented Jan 7, 2023

@nikitavoloboev Please use a routes directory instead of endpoints (which is deprecated). Can you point me to the part in documentation that still mentions endpoints so we can fix it?

/cc @CodingDoug

@nikitavoloboev
Copy link
Author

https://github.com/chiselstrike/chiselstrike#quick-start

Add an endpoint by writing the following TypeScript code to endpoints/comments.ts

@nikitavoloboev
Copy link
Author

Ok this works, will close this. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants