Error on calling slim4

Dears,
I’m receiving the below error when I tried to post

<br />
<b>Fatal error</b>:  Uncaught Slim\Exception\HttpNotFoundException: Not found. in C:\xampp\htdocs\lotus\vendor\slim\slim\Slim\Middleware\RoutingMiddleware.php:91
Stack trace:
#0 C:\xampp\htdocs\lotus\vendor\slim\slim\Slim\Routing\RouteRunner.php(72): Slim\Middleware\RoutingMiddleware-&gt;performRouting(Object(Slim\Psr7\Request))
#1 C:\xampp\htdocs\lotus\vendor\slim\slim\Slim\MiddlewareDispatcher.php(81): Slim\Routing\RouteRunner-&gt;handle(Object(Slim\Psr7\Request))
#2 C:\xampp\htdocs\lotus\vendor\slim\slim\Slim\App.php(215): Slim\MiddlewareDispatcher-&gt;handle(Object(Slim\Psr7\Request))
#3 C:\xampp\htdocs\lotus\vendor\slim\slim\Slim\App.php(199): Slim\App-&gt;handle(Object(Slim\Psr7\Request))
#4 C:\xampp\htdocs\lotus\public\index.php(220): Slim\App-&gt;run()
#5 {main}
  thrown in
<b>C:\xampp\htdocs\lotus\vendor\slim\slim\Slim\Middleware\RoutingMiddleware.php</b> on line
<b>91</b>
<br />

index.php contains

<?php

use Slim\Factory\AppFactory;

use Psr\Http\Message\ServerRequestInterface as Request;

use Psr\Http\Message\ResponseInterface as Response;

require __DIR__ . '/../vendor/autoload.php';

require '../includes/DbOperations.php';

$app = AppFactory::create();

$app->setBasePath("/public"); 

$app->get('/', function (Request $request, Response $response, $args)

If you are sending a POST request then you need to create a route that will accept that request type. (Yours is just listening for GET requests.)

$app->post('/', function (Request $request, Response $response, $args)

See: Routing - Slim Framework

Which web server are you using?

The basePath is only for the URL path and not for the public/ directory on your servers hard disk.

Make sure that your webserver DocumentRoot points directly into the public/ directory
and add a .htaccess file for the front-controller (public/index.php).

Read more: Apache mod_rewrite configuration