Now, that is it for this course section.
As mentioned multiple times throughout the section,
you can absolutely work on the front end.
You can improve the feedback, the user interface there.
You can show a loading and a error state,
and give the user better feedback about what's happening.
That's all standard react, not next specific,
and definitely not API route specific.
This module was about practicing API routes, though.
And here, you'll learn a lot about them.
You, again, saw that you can create static
and dynamic API routes, where data is encoded in the URL.
And you learned how you add your own API routes
that you can run any service and logic you want in there
and that you can, for example,
use them to connect to a real database.
In this case to MongoDB.
You then learned that you can send back different responses,
both error and success responses,
and how you can manage your code flow,
and the function execution
with your different return statements
with the different responses and with different if checks,
for example, by checking for the request method.
Being able to use API routes is very important
because for a lot of websites and web applications
you will be building you don't just want
to have pages that can be pre-rendered.
But you often do want certain service and logic
that should be executed on demand.
For example, when a user signs up for a newsletter,
or leaves a comment, just as we added it here.