tensei icon indicating copy to clipboard operation
tensei copied to clipboard

404 Not found

Open Kaexburli opened this issue 3 years ago • 0 comments

Hi,

I wanted to test tenseijs for the auth part that interests me but I can't access the rest api auth part, I still come across an error 404 not found for all the routes that the auth plugins should add

I have a fresh installation, do I need to activate something? I searched in the documentation I find no indication in this sense!

import { auth } from '@tensei/auth'
import { rest } from '@tensei/rest'
import { welcome, tensei, cors } from '@tensei/core'

export default tensei()
  .root(__dirname)
  .plugins([
    welcome(),
    auth().plugin(),
    rest().plugin(),
    cors()
  ])
  .start()
  .catch(console.error)

tensei_404 tensei_404_2

Kaexburli avatar Feb 01 '22 17:02 Kaexburli