RejectedSoftware Forums

Sign up

Routes for Collection!ItemAPI rest interfaces for both /items/ and /items

If you look add examples/rest-collections/source/api.d [1], you'll find

	// GET /threads/
	// Returns a list of all thread names
	string[] get();

Is there an easy way to make all those methods available at a path without an slash as well (/threads in this case?)

[1] https://github.com/vibe-d/vibe.d/blob/d4e60c4b8c23259e8c8b85ca5dec2d9da8659648/examples/rest-collections/source/api.d#L24

Re: Routes for Collection!ItemAPI rest interfaces for both /items/ and /items

On Mon, 23 Sep 2019 17:51:55 GMT, Tobias Pankrath wrote:

If you look add examples/rest-collections/source/api.d [1], you'll find

	// GET /threads/
	// Returns a list of all thread names
	string[] get();

Is there an easy way to make all those methods available at a path without an slash as well (/threads in this case?)

[1] https://github.com/vibe-d/vibe.d/blob/d4e60c4b8c23259e8c8b85ca5dec2d9da8659648/examples/rest-collections/source/api.d#L24

Looking into the source code I don't think it can easily be made configurable.