vibe.d beta banner
get vibe.d
0.10.0

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 Sönke Ludwig

License

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