vibe.d beta banner
get vibe.d
0.8.4

Asynchronous I/O that doesn’t get in your way, written in D

Function noRoute

Methods marked with this attribute will not be treated as web endpoints.

vibe.web.common.NoRouteAttribute noRoute() @property;

This attribute enables the definition of public methods that do not take part in the interface genration process.

Example

interface IAPI {
	// Accessible as "GET /info"
	string getInfo();

	// Not accessible over HTTP
	@noRoute
	int getFoo();
}
Authors

Sönke Ludwig, Михаил Страшун

Copyright

© 2012-2017 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.