Пример #1
0
        public TilesModule(Config cfg, TilesService tilesService, RouteRepository routeRepository)
        {
            _cfg = cfg;
            _tilesService = tilesService;
            _routeRepository = routeRepository;

            Get["/Tiles/{zoom}/{x}/{y}"] = GetTile;
            Get["/Tiles/Route/{routeId}"] = GetTileRoute;
        }
Пример #2
0
        public MapModule(Config cfg, TrackRepository trackRepository, RouteRepository routeRepository)
        {
            _cfg = cfg;
            _trackRepository = trackRepository;
            _routeRepository = routeRepository;
            this.RequiresAuthentication();

            Get["/Map"] = x => View["Index"];
            Get["/Map/Route/DownloadRt2/{id}"] = DownloadRt2;
            Post["/Map/uploadTrack"] = UploadTrack;
        }