Closed artoodeeto closed 4 years ago
Hmm I'm not sure what's going on buddy. I just tried out my sample project to make sure it was still working. Here's a file in the sample project where I use a single word route. https://github.com/seanpmaxwell/overnight/blob/master/sample-project/src/controllers/JwtPracticeController.ts. Download the sample project and see if that' works for you.
@seanpmaxwell aight sir. thats weird, ive been debugging it last night I couldn't find any issue. actually theres no error on the route but the error is coming from the model. Its trying to access a bar
entity on my models. ill my repo. its really weird. but anyways. thanks.
The model huh. Are you is using TypeOrm?
@seanpmaxwell yea. sorry I havent shared my repo. I was busy at work. but yes im using typeorm. ohh nooo. please dont tell me its the ORM. been working on my personal project for about a month now. :sob:
TypeOrm is garbage, use raw sql. Well you said the error is happening on the model not the route so I'm going to close this issue as it doesn't seem to be overnight related. good luck!
hello again sir. I really love your work. been using this on my side project. I just want to say thank you for everything.
Anyway I think I found a bug. so on this simple controller the
Get()
andGet(':id')
is working as normal, but when I tried creating theGet('test')
andGet('bar')
I wont hit or get any response from that route. I have to this make an extension on the route name likebar/foo
andtest/tst
something like that. You cant have a single word on a route? just wanted to let you know. thanks again and I support this. ❤️im using the version:
"@overnightjs/core": "1.6.11",