404 Not Found on route or endpoint


I’m trying to create a shopping cart connected to Stripe. I have a route at src/api/order/routes/order like

'use strict';
// @ts-ignore
const stripe = require("stripe")("sk_test_51HkHcCFkImA5M2VmIzUYwtONzq25IKJpmNetKOkQ6Hl1PHabknkQJ9EI0sAD93tuF576rMYBO8ncsygUW3AyOWnS00Am5dev23");

 * order router

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::order.order');

module.exports = {
    routes: [
            method: "POST",
            path: "/orders/payment",
            handler: "order.setUpStripe"

In the code I’m trying to access this with


but it seems to be failing.

Should I be able to access this in the browser.

If I try to access this address in the browser I get

{"data":null,"error":{"status":404,"name":"NotFoundError","message":"Not Found","details":{}}}