11 lines
332 B
D
11 lines
332 B
D
module data_api;
|
|
|
|
import handy_http_primitives;
|
|
import handy_http_handlers.path_handler : PathMapping;
|
|
import handy_http_data;
|
|
import util.money;
|
|
|
|
@PathMapping(HttpMethod.GET, "/api/currencies")
|
|
void handleGetCurrencies(ref ServerHttpRequest request, ref ServerHttpResponse response) {
|
|
writeJsonBody(response, ALL_CURRENCIES);
|
|
} |