김서영

add Korean api url

......@@ -13,6 +13,7 @@ const rp = require("request-promise");
// Api URL
const URL = {
"ETRI" : "http://aiopen.etri.re.kr:8000/",
"Korean" : "https://search.naver.com/p/csearch/ocontent/util/SpellerProxy?_callback=&color_blindness=0&q="
}
// ETRI Api Request Format
......@@ -53,6 +54,7 @@ apiRequest.ETRI = async ( query, argument ) => {
*/
apiRequest.Korean = async ( text ) => {
return new Promise( ( resolve,reject ) => {
rp( { "uri" : URL.Korean+encodeURI( text ) } )
.then( ( body ) => {
body = body.substring( 1, body.length - 2 );
......