judge0 / ide

✨ Simple, free and open-source online code editor.
https://ide.judge0.com
MIT License
818 stars 257 forks source link

Modified URL #29

Closed adhavalboy closed 4 years ago

adhavalboy commented 5 years ago

Can we create manual URL instead of random URL?

coolph007 commented 5 years ago
$.ajax({
    url: PB_URL + "~" + manual_code,
    type: "POST",
    async: true,
    headers: {
        Accept: "application/json"
    },
    data: {
        content: content
    },
    success: function (data) {
        // ...
    },
    error: function () {
        // ...
    }
});

https://pb.judge0.com/#vanity-pastes

hermanzdosilovic commented 4 years ago

@adhavalboy does the comment of @adityacoder007 answers your question? I don't think that I would add this feature to public Judge0 IDE, but you can add it to your own instance if you want.

adhavalboy commented 4 years ago

Yeah thank you :)