abp icon indicating copy to clipboard operation
abp copied to clipboard

Razor Pages on API

Open aklscv opened this issue 6 years ago • 5 comments

I created a new project using --ui none. When exploring the .Host project I found out that if I navigate to /account/login it displays a login page:

image

Is there a way to remove this and the others? (register etc...)

I create a project with no UI so I can use my own SPA and handle all the front-end there. I don't want my users to find this url and suddenly login/create accounts using it.

aklscv avatar Apr 03 '20 05:04 aklscv

see https://github.com/abpframework/abp/issues/3441

https://github.com/abpframework/abp/issues/3434#issuecomment-607060038

maliming avatar Apr 03 '20 05:04 maliming

@maliming I don't see how that is related to my problem. As a matter of fact is the opposite situation. I don't want those pages to show at all. My users should use my SPA to interact with my database not find out about the API url and find these pages.

aklscv avatar Apr 03 '20 15:04 aklscv

hi @aklscv

Maybe related: https://github.com/abpframework/abp/issues/3434#issuecomment-607060038

maliming avatar Apr 04 '20 02:04 maliming

@maliming Thanks! I saw this commit and it worked. However, I can't do the same for the Register page because it returns a Task instead of Task<IActionResult>. Maybe it should be changed to return IActionResult too.

aklscv avatar Apr 05 '20 19:04 aklscv

hi @aklscv

Please follow: https://github.com/abpframework/abp/issues/3495

maliming avatar Apr 07 '20 10:04 maliming