Replies: 1 comment
-
All initial routing is determined by the handlers found here: CommunitySolidServer/config/http/handler/default.json Lines 13 to 25 in 355f7dd Most of these make use of a So you would need to create a similar instance and put it in the array above. Currently, Components.js does not allow you to specify where to insert a new element in an existing array, something that I'm working on, so you would have to replace the entire array; the |
Beta Was this translation helpful? Give feedback.
-
Hello,
What would be the way to new endpoint at
.well-known/my-new-endpoint
that return a JSON object using componentjs ?Let assume the the endpoint is not static, and return the result of a function.
For example, let's say we create
.well-known/today
that return the current date in a JSON format.What would be the way to create that ?
Beta Was this translation helpful? Give feedback.
All reactions