question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is it possible to configure app prefix or use it out-of-the-box when setting up app.setGlobalPrefix?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

3reactions
subotin94commented, Apr 21, 2020

I think the problem here isnt the prefix, you can hit the route, but when you send an XHR, it should check if app has global prefix and attach it to the request url

2reactions
subotin94commented, Jun 5, 2020

Just do not use the global prefix. You have to manually add it on your @Controller decorators

On Fri, Jun 5, 2020, 10:02 maksimoancha notifications@github.com wrote:

Current behavior is that it tries the req, it cuts your prefix from the route since it didnt hit it and then you end up on a not found page

Have the same issue. I’m using ‘api’ global prefix for my app, and can open login page at …/api/admin/login, but when click button to login, got “Not Found” error because request with my login info sended to …/admin/login indtead of …/api/admin/login. Do you found any solution?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Theodo-UK/nestjs-admin/issues/159#issuecomment-639324269, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACX65JVGAISY2GDC3SIZSHTRVCRCNANCNFSM4LRFCUCA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

How/Where to define an App ID Prefixes in Xcode?
To get a definitive answer go to https://developer.apple.com/account/ios/identifier/bundle, click on your App ID and under Name you will see "Prefix" which will ...
Read more >
Prefix App - New on the App Store
Prefix App is the App that let you put a prefix before the phone number without editing your address book. Very useful if...
Read more >
Prefix
Prefix.
Read more >
ap- | Meaning of prefix ap- by etymonline
form of Latin ad- in compounds with words or stems beginning in -p-; see ad-. In Old French reduced to a-, but scribal...
Read more >
Prefix – Automation without boundaries
Prefix comes out-of-the-box with hundreds of actions that allow you to automate an unprecendented variety of workflows on your computer across application ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found