good project structure, correct use of React / mongoDB / express concepts
The JSON body parser could just be included for all routes inside of server.js:
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Exchange Rates</title> | |
| </head> | |
| <body> | |
| <div class="main"> |
| /* | |
| * akinator.js | |
| * Copyright (C) 2022 Martin Užák [email protected] | |
| * | |
| * Distributed under terms of the MIT license. | |
| */ | |
| "use strict"; | |
| const prompt = require("prompt-sync")(); |