Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current view & current resource get overridden in start method #44

Open
joegasewicz opened this issue Nov 2, 2022 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@joegasewicz
Copy link
Owner

joegasewicz commented Nov 2, 2022

Work around:
If you have a mixture of views & resources, then list the views first, then the resources:

// views...
app.Route("/health").View(views.Health).Methods("GET")

// resources...
app.Route("/noticeboards").Resource(&views.Blogs{}).Methods("GET", "POST", "PUT", "DELETE").Templates(
		"./templates/views/blogs.gohtml",
	)
@joegasewicz joegasewicz added the bug Something isn't working label Nov 2, 2022
@joegasewicz joegasewicz self-assigned this Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant