Reaching Out to the Routes and Database

Learn how to create placeholders and access the database using the API calls.

Placeholders

While the databases include games, users, and usages tables, the routes only include games. This is because the client only interacts with the games, and the other tables play a supporting role. Here’s one way to create simple placeholders. Each method ignores its arguments and payloads and simply returns an “under construction” message.

Now, no attempted access will cause the server to crash. Instead it will return the same message.

Try it yourself

Click “Run” and execute the following command in the widget below:

Get hands-on with 1200+ tech skills courses.