You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
488 B
18 lines
488 B
"use strict";
|
|
|
|
/**
|
|
* @param {Egg.Application} app - egg application
|
|
*/
|
|
module.exports = (app) => {
|
|
const { router, controller } = app;
|
|
//设置收藏数据
|
|
router.post('/self/setRouterFav', controller.home.setRouterFav);
|
|
//获取收藏数据
|
|
router.post("/self/getRouterFav", controller.home.getRouterFav);
|
|
//获取瓦片地图
|
|
router.get("/self/:mapName/:z/:x/:y", controller.home.getMapPng);
|
|
//获取文件
|
|
router.get("/self/getFile", controller.home.getFile);
|
|
|
|
|
|
};
|
|
|