library-manager/api/main.cpp
SuperNovaa41 e51dc21e67 Separates the isbn-lookup interactions into its own file
This is prepping for adding more features, as i want the actual
functions that are interaction with the `isbn` tool to be separate
2024-01-22 15:12:28 -05:00

29 lines
388 B
C++

#include <crow.h>
#include <crow/app.h>
#include <fstream>
#include "csv.h"
#include "isbn-interaction.h"
std::string print_hello()
{
return "server is running!";
}
int main()
{
crow::SimpleApp app;
CROW_ROUTE(app, "/")([](){
return crow::response(print_hello());
});
CROW_ROUTE(app, "/books")([](){
return crow::response(get_all_books());
});
app.port(18080).run();
}