- Strapi Version: 4.1.1
- Operating System: macOS
- Database: Postgres
- Node Version: 16.14.2
- NPM Version: 8.5.0
- Yarn Version:
I am trying to create a custom login page api where the api from strapi will serve to other applications as endpoints.
So i was referring to https://forum.strapi.io/t/create-custom-endpoint-for-users-in-strapi-v4/13724/2 and followed all the steps.
- created a file /extension/users-permission/strapi-server.js
- place the new route and function in the file
but it still returns 404, without consoling anything.
However the ‘newMethod’ shows up in admin board of strapi and I have given it public access
please assist, I am new to strapi.
I tried searching on forum, applied few methods but nothing seems to work.