Skip to content

Commit

Permalink
Url as cosnt
Browse files Browse the repository at this point in the history
  • Loading branch information
remojansen committed Nov 17, 2016
1 parent b480cd9 commit 28d3e43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/renderer/renderer.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import * as request from "request";

const renderingService = "http://yuml.me/diagram/plain/class/";

function render(dsl: string): Promise<string> {
return new Promise<string>((resolve, reject) => {
request.post(
"http://yuml.me/diagram/plain/class/",
renderingService,
{ json: { dsl_text: dsl } },
function (error, response, body) {
if (!error && response.statusCode === 200) {
Expand Down

0 comments on commit 28d3e43

Please sign in to comment.