Combining dashboard and REST API? #686
-
Hi,
Then I start my dashboard with
and I see the dashboard in my browser. When I ping the api with
I get a 404 error. How do I correctly combine the rest api into my dashboard? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@rkube I think you've done it right. The issue seems to be that you defined "/test" over POST but you're making a GET request with curl. |
Beta Was this translation helpful? Give feedback.
-
Oh, right. Thanks!
shows the correct payloads. |
Beta Was this translation helpful? Give feedback.
-
The routes are registered at app level, so they can be declared anywhere. But of course, you need to make sure that the file where you declare the routes is actually executed. |
Beta Was this translation helpful? Give feedback.
@rkube I think you've done it right. The issue seems to be that you defined "/test" over POST but you're making a GET request with curl.