# portal 資訊模塊兒的API 的配置
```
//設置域名
const SERVERURL = "http://xxx.xxx.xxx.xxx/";
//專用遠程調試圖片所用,有時候圖片調試就沒有了,因此加了這個變量
const SERVERIMGURL = "http://xxx.xxx.xxx/";
var Config = { };
/*路由地址*/
Config.api = {
//文章分類
Portal_Terms : SERVERURL + "index.php?g=Portal&m=Api&a=getTermsById",
//文章列表
Portal_List : SERVERURL + "index.php?g=Portal&m=Api&a=getArticleByTermsId",
//文章內容
Portal_Article : SERVERURL + "index.php?g=Portal&m=Api&a=articleCon",
//最新活動
Portal_Article_New : SERVERURL + "index.php?g=Portal&m=Api&a=getArticles",
//獲取指定文章下的評論
User_Article_Comment : SERVERURL + "index.php?g=Portal&m=Api&a=getCommentById",
//獲取指定文章下提交評論
User_Article_Comment_Submit : SERVERURL + "index.php?g=Portal&m=Api&a=comment_submit",
//收藏某一篇文章
User_Article_Collect : SERVERURL + "index.php?g=Portal&m=Api&a=collectArticle",
//取消收藏某一篇文章
User_Article_Cancel_Collect : SERVERURL + "index.php?g=Portal&m=Api&a=cancelCollectArticle",
//收藏狀態
User_Article_Collect_Status : SERVERURL + "index.php?g=Portal&m=Api&a=collectStatus",
//單頁列表
Portal_Page_List : SERVERURL + "index.php?g=Portal&m=Api&a=portal_page",
//單頁內容
Portal_Page_Content : SERVERURL + "index.php?g=Portal&m=Api&a=portal_page_article",
};
```