コード例 #1
0
ファイル: WebApiConfig.cs プロジェクト: synweb/rocms
 public static void Register(HttpConfiguration config)
 {
     WebApiConfigHelper.ApiRoute(config.Routes, "options/get", "OptionsApi", "GetOptions");
     WebApiConfigHelper.ApiRoute(config.Routes, "options/{id}/get", "OptionsApi", "Get");
     WebApiConfigHelper.ApiRoute(config.Routes, "options/{id}/delete", "OptionsApi", "Remove");
     WebApiConfigHelper.ApiRoute(config.Routes, "options/create", "OptionsApi", "Create");
     WebApiConfigHelper.ApiRoute(config.Routes, "options/update", "OptionsApi", "Update");
 }
コード例 #2
0
ファイル: WebApiConfig.cs プロジェクト: synweb/rocms
        public static void Register(HttpConfiguration config)
        {
            var    settingsService = DependencyResolver.Current.GetService <ISettingsService>();
            string token           = settingsService.GetSettings <string>("Hooks_TelegramBot_WebHookToken");

            if (!String.IsNullOrWhiteSpace(token))
            {
                WebApiConfigHelper.ApiRoute(config.Routes, $"webhook/telegrambot/{token}/receive", "TelegramBotApi",
                                            "ReceiveWebHook");
            }

            WebApiConfigHelper.ApiRoute(config.Routes, "telegrambot/settings/update", "TelegramBotSettingsApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "telegrambot/settings/get", "TelegramBotSettingsApi", "Get");
        }
コード例 #3
0
ファイル: WebApiConfig.cs プロジェクト: synweb/rocms
        public static void Register(HttpConfiguration config)
        {
            WebApiConfigHelper.ApiRoute(config.Routes, "news/news/create", "NewsApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/news/{id}/update", "NewsApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/news/{id}/delete", "NewsApi", "Delete");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/news/{id}/get", "NewsApi", "Get");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/news/get", "NewsApi", "GetNewsItems");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/news/filter", "NewsApi", "Filter");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/{id}/view", "NewsApi", "IncreaseViewCount", true);

            WebApiConfigHelper.ApiRoute(config.Routes, "news/{id}/comment/create", "NewsApi", "CreateComment");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/admin/comment/{id}/delete", "NewsApi", "AdminDeleteComment");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/comment/{id}/delete", "NewsApi", "DeleteComment");
            //WebApiConfigHelper.ApiRoute(config.Routes, "news/comment/moderate", "NewsApi", "ModerateComment");
            //WebApiConfigHelper.ApiRoute(config.Routes, "news/comment/edit", "NewsApi", "UpdateText");

            WebApiConfigHelper.ApiRoute(config.Routes, "news/categories/get", "NewsCategoryApi", "GetCategories");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/categories/order/update", "NewsCategoryApi", "UpdateSortOrder");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/category/create", "NewsCategoryApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/category/update", "NewsCategoryApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/category/{categoryId}/delete", "NewsCategoryApi", "Remove");


            WebApiConfigHelper.ApiRoute(config.Routes, "news/blog/client/create", "NewsBlogClientApi", "CreateBlog");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/blog/client/update", "NewsBlogClientApi", "UpdateBlog");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/blog/client/post/create", "NewsBlogClientApi", "CreatePost");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/blog/client/post/update", "NewsBlogClientApi", "UpdatePost");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/blog/client/post/{newsId}/delete", "NewsBlogClientApi", "DeletePost");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/blog/client/free/{url}", "NewsBlogClientApi", "BlogUrlIsFree");

            WebApiConfigHelper.ApiRoute(config.Routes, "news/blog/admin/update", "NewsBlogAdminApi", "UpdateBlog");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/blog/{blogId}/delete", "NewsBlogAdminApi", "Delete");

            WebApiConfigHelper.ApiRoute(config.Routes, "news/blog/profile/update", "NewsBlogClientApi", "UpdateProfile");

            WebApiConfigHelper.ApiRoute(config.Routes, "news/tag/pattern/get", "TagApi", "GetTagByPattern");

            WebApiConfigHelper.ApiRoute(config.Routes, "news/settings/get", "NewsSettingsApi", "Get");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/settings/update", "NewsSettingsApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/settings/crawlers/get", "NewsSettingsApi", "GetRssCrawlers");
            WebApiConfigHelper.ApiRoute(config.Routes, "news/settings/crawlers/update", "NewsSettingsApi", "UpdateRssCrawlers");
        }
コード例 #4
0
        public static void Register(HttpConfiguration config)
        {
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/countries/get", "ManufacturerApi", "GetCountries");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/categories/get", "CategoryApi", "GetCategories");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/categories/order/update", "CategoryApi", "UpdateSortOrder");


            WebApiConfigHelper.ApiRoute(config.Routes, "shop/category/create", "CategoryApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/category/update", "CategoryApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/category/{categoryId}/delete", "CategoryApi", "Remove");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/manufacturers/get", "ManufacturerApi", "GetManufacturers");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/manufacturers/used/get", "ManufacturerApi", "GetUsedManufacturers");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/manufacturer/create", "ManufacturerApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/manufacturer/update", "ManufacturerApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/manufacturer/{manufacturerId}/delete", "ManufacturerApi", "Delete");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/suppliers/get", "ManufacturerApi", "GetSuppliers");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/packs/get", "PackApi", "GetPacks");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/pack/create", "PackApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/pack/update", "PackApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/pack/{packId}/delete", "PackApi", "Delete");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/pack/{packId}/get", "PackApi", "Get");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/compatibles/get", "CompatibleApi", "GetCompatibleSets");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/compatible/create", "CompatibleApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/compatible/update", "CompatibleApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/compatible/{compatibleSetId}/delete", "CompatibleApi", "Delete");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/compatible/{compatibleSetId}/get", "CompatibleApi", "Get");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/actions/get", "ActionApi", "GetActions");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/action/{actionId}/get", "ActionApi", "Get");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/action/create", "ActionApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/action/update", "ActionApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/action/{actionId}/delete", "ActionApi", "Delete");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/category/{categoryId}/get", "GoodsApi", "GetCategory");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/filter", "GoodsApi", "GetGoods");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/get", "GoodsApi", "Get");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/create", "GoodsApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/update", "GoodsApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/{goodsId}/delete", "GoodsApi", "Delete");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/reviews/get", "GoodsApi", "GetAllGoodsReviews");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/reviews/{goodsId}/get", "GoodsApi", "GetGoodsReviews");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/textreviews/get", "GoodsApi", "GetAllGoodsReviewsWithText");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/textreviews/{goodsId}/get", "GoodsApi", "GetGoodsReviewsWithText");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/reviews/create", "GoodsApi", "CreateGoodsReview");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/reviews/update", "GoodsApi", "UpdateGoodsReview");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/reviews/{reviewId}/delete", "GoodsApi", "DeleteGoodsReview");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/reviews/{reviewId}/accept", "GoodsApi", "AcceptReview");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/reviews/{reviewId}/hide", "GoodsApi", "HideReview");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/goods/awaiting/create", "GoodsAwaitingApi", "Create");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/orders/get", "OrderApi", "GetOrders");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/orders/page/{startIndex}/{pageSize}/{clientId}/get", "OrderApi", "GetOrdersPage");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/order/create", "OrderApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/order/update", "OrderApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/order/updateState", "OrderApi", "UpdateState");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/order/{orderId}/delete", "OrderApi", "Delete");


            WebApiConfigHelper.ApiRoute(config.Routes, "shop/specs/get", "SpecApi", "GetSpecs");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/spec/create", "SpecApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/spec/update", "SpecApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/spec/updateorder", "SpecApi", "UpdateOrder");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/spec/{specId}/delete", "SpecApi", "Delete");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/pickupPoints/get", "PickUpPointApi", "GetPoints");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/pickupPoint/create", "PickUpPointApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/pickupPoint/update", "PickUpPointApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/pickupPoint/{id}/delete", "PickUpPointApi", "Delete");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/regularClients/get", "RegularClientApi", "Get");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/regularClients/create", "RegularClientApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/regularClients/update", "RegularClientApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/regularClients/{id}/delete", "RegularClientApi", "Delete");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/cart/{goodsId}/{packId}/{count}/add", "CartApi", "AddItem", true);
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/cart/{goodsId}/{packId}/{count}/change", "CartApi", "ChangeItemCount", true);
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/cart/{goodsId}/{packId}/remove", "CartApi", "RemoveItem", true);
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/cart/clear", "CartApi", "Clear", true);
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/cart/summary", "CartApi", "CartSummary", true);
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/cart/get", "CartApi", "GetCart", true);
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/cart/process", "CartApi", "ProcessOrder", true);
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/cart/user/discount/update", "CartApi", "UpdateUserDiscount", true);


            WebApiConfigHelper.ApiRoute(config.Routes, "shop/dimensions/get", "DimensionApi", "GetDimensions");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/export/yml/generate", "ExportYmlApi", "Generate");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/export/yml/tasks", "ExportYmlApi", "Tasks");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/export/yml/settings/get", "ExportYmlApi", "Settings");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/export/file/yml", "ExportYmlApi", "GetYmlFile");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/export/prices/start", "ExportShopDbApi", "Start");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/export/prices/tasks", "ExportShopDbApi", "Tasks");

            WebApiConfigHelper.ApiRoute(config.Routes, "shop/clients/page/{startIndex}/{pageSize}/get", "ClientApi", "GetClientsPage");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/client/update", "ClientApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/client/{clientId}/get", "ClientApi", "Get");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/client/{clientId}/delete", "ClientApi", "DeleteClient");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/client/user/{userId}/get", "ClientApi", "GetForUser");


            WebApiConfigHelper.ApiRoute(config.Routes, "shop/settings/get", "ShopSettingsApi", "Get");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/settings/update", "ShopSettingsApi", "Update");


            WebApiConfigHelper.ApiRoute(config.Routes, "shop/mass/price/tasks", "MassChangeApi", "GetChangePriceTasks");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/mass/price/change", "MassChangeApi", "ChangePrice");


            WebApiConfigHelper.ApiRoute(config.Routes, "shop/currency/{currencyId}/delete", "CurrencyApi", "DeleteCurrency");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/currencies/get", "CurrencyApi", "GetCurrencies");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/currency/create", "CurrencyApi", "CreateCurrency");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/currency/update", "CurrencyApi", "UpdateCurrency");
            WebApiConfigHelper.ApiRoute(config.Routes, "shop/currency/setdefault/{id}", "CurrencyApi", "SetDefaultCurrency");
        }
コード例 #5
0
        public static void Register(HttpConfiguration config)
        {
            WebApiConfigHelper.ApiRoute(config.Routes, "user/current/info/get", "UserApi", "GetCurrentUserInfo");
            WebApiConfigHelper.ApiRoute(config.Routes, "user/password/createTicket/{email}", "UserApi", "CreateTicket");
            WebApiConfigHelper.ApiRoute(config.Routes, "user/password/set", "UserApi", "SetPassword");
            WebApiConfigHelper.ApiRoute(config.Routes, "users/get", "UserApi", "GetUsers");
            WebApiConfigHelper.ApiRoute(config.Routes, "user/{name}/delete", "UserApi", "DeleteUser");
            WebApiConfigHelper.ApiRoute(config.Routes, "user/resources/update", "UserApi", "UpdateResources");
            WebApiConfigHelper.ApiRoute(config.Routes, "user/profile/update", "UserApi", "UpdateProfile");

            WebApiConfigHelper.ApiRoute(config.Routes, "menu/{id}/get", "MenuApi", "Get");
            WebApiConfigHelper.ApiRoute(config.Routes, "menu/{id}/delete", "MenuApi", "Delete");
            WebApiConfigHelper.ApiRoute(config.Routes, "menu/create", "MenuApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "menu/update", "MenuApi", "Update");

            WebApiConfigHelper.ApiRoute(config.Routes, "review/{id}/delete", "ReviewApi", "Delete");
            WebApiConfigHelper.ApiRoute(config.Routes, "review/create", "ReviewApi", "Create");
            WebApiConfigHelper.ApiRoute(config.Routes, "review/createbyadmin", "ReviewApi", "CreateByAdmin");
            WebApiConfigHelper.ApiRoute(config.Routes, "review/update", "ReviewApi", "Update");
            WebApiConfigHelper.ApiRoute(config.Routes, "review/{id}/accept", "ReviewApi", "Accept");
            WebApiConfigHelper.ApiRoute(config.Routes, "review/{id}/hide", "ReviewApi", "Hide");

            WebApiConfigHelper.ApiRoute(config.Routes, "block/{id}/delete", "BlockApi", "Delete");
            WebApiConfigHelper.ApiRoute(config.Routes, "block/blocks/get", "BlockApi", "Blocks");

            WebApiConfigHelper.ApiRoute(config.Routes, "heart/hearts/get", "HeartApi", "GetHearts");
            WebApiConfigHelper.ApiRoute(config.Routes, "heart/hearts/{type}/get", "HeartApi", "GetHeartsByType");

            WebApiConfigHelper.ApiRoute(config.Routes, "page/pages/get", "PageApi", "Pages");
            WebApiConfigHelper.ApiRoute(config.Routes, "page/{id}/copy", "PageApi", "CopyPage");
            WebApiConfigHelper.ApiRoute(config.Routes, "page/{relativeUrl}/get", "PageApi", "GetPage");
            WebApiConfigHelper.ApiRoute(config.Routes, "page/create", "PageApi", "CreatePage");
            WebApiConfigHelper.ApiRoute(config.Routes, "page/update", "PageApi", "UpdatePage");

            WebApiConfigHelper.ApiRoute(config.Routes, "slider/sliders/get", "SliderApi", "GetSliders");
            WebApiConfigHelper.ApiRoute(config.Routes, "slider/{id}/get", "SliderApi", "GetSlider");
            WebApiConfigHelper.ApiRoute(config.Routes, "slider/{id}/delete", "SliderApi", "RemoveSlider");
            WebApiConfigHelper.ApiRoute(config.Routes, "slider/create", "SliderApi", "CreateSlider");

            WebApiConfigHelper.ApiRoute(config.Routes, "slide/slides/{sliderId}/get", "SliderApi", "GetSlides");
            WebApiConfigHelper.ApiRoute(config.Routes, "slide/{id}/get", "SliderApi", "GetSlide");
            WebApiConfigHelper.ApiRoute(config.Routes, "slide/{id}/update", "SliderApi", "EditSlide");
            WebApiConfigHelper.ApiRoute(config.Routes, "slide/{id}/delete", "SliderApi", "RemoveSlide");
            WebApiConfigHelper.ApiRoute(config.Routes, "slide/create", "SliderApi", "CreateSlide");

            WebApiConfigHelper.ApiRoute(config.Routes, "message/send/order", "MessageApi", "Order");
            WebApiConfigHelper.ApiRoute(config.Routes, "message/send/callback", "MessageApi", "Callback");

            WebApiConfigHelper.ApiRoute(config.Routes, "image/remove/{id}", "ImageApi", "RemoveImage");

            WebApiConfigHelper.ApiRoute(config.Routes, "album/create", "AlbumApi", "CreateAlbum");
            WebApiConfigHelper.ApiRoute(config.Routes, "album/{albumId}/delete", "AlbumApi", "DeleteAlbum");
            WebApiConfigHelper.ApiRoute(config.Routes, "album/{albumId}/sort/update", "AlbumApi", "UpdateSortOrder");
            WebApiConfigHelper.ApiRoute(config.Routes, "album/{albumId}/image/{imageId}/title/update", "AlbumApi", "UpdateImageTitle");
            WebApiConfigHelper.ApiRoute(config.Routes, "album/{albumId}/image/{imageId}/description/update", "AlbumApi", "UpdateImageDescription");
            WebApiConfigHelper.ApiRoute(config.Routes, "album/{albumId}/image/{imageId}/destinationUrl/update", "AlbumApi", "UpdateImageDestinationUrl");
            WebApiConfigHelper.ApiRoute(config.Routes, "album/{albumId}/{imageId}/add", "AlbumApi", "AddImageToAlbum");
            WebApiConfigHelper.ApiRoute(config.Routes, "album/{albumId}/images/remove/{id}", "AlbumApi", "RemoveImageFromAlbum");
            WebApiConfigHelper.ApiRoute(config.Routes, "album/update", "AlbumApi", "UpdateAlbum");
            //WebApiConfigHelper.ApiRoute(config.Routes, "album/{albumId}/{watermarkImageId}/watermark/set", "Gallery", "SetAlbumWatermark"); // метод там, так как работает с кэшэм, который есть только в MVC
            //WebApiConfigHelper.ApiRoute(config.Routes, "album/{albumId}/watermark/remove", "Gallery", "RemoveAlbumWatermark"); // метод там, так как работает с кэшэм, который есть только в MVC

            WebApiConfigHelper.ApiRoute(config.Routes, "useralbum/getid", "UserAlbumApi", "GetUserAlbumId");
            WebApiConfigHelper.ApiRoute(config.Routes, "useralbum/{imageId}/add", "UserAlbumApi", "AddImageToUserAlbum");

            WebApiConfigHelper.ApiRoute(config.Routes, "video/album/create", "VideoAlbumApi", "CreateVideoAlbum");
            WebApiConfigHelper.ApiRoute(config.Routes, "video/album/{albumId}/{videoId}/add", "VideoAlbumApi", "AddVideoToAlbum");
            WebApiConfigHelper.ApiRoute(config.Routes, "video/album/{albumId}/delete", "VideoAlbumApi", "DeleteVideoAlbum");
            WebApiConfigHelper.ApiRoute(config.Routes, "video/album/{albumId}/sort/update", "VideoAlbumApi", "UpdateSortOrder");
            WebApiConfigHelper.ApiRoute(config.Routes, "video/{videoId}/title/update", "VideoAlbumApi", "UpdateVideoTitle");
            WebApiConfigHelper.ApiRoute(config.Routes, "video/{videoId}/description/update", "VideoAlbumApi", "UpdateVideoDescription");
            WebApiConfigHelper.ApiRoute(config.Routes, "video/{videoId}/delete", "VideoAlbumApi", "DeleteVideo");
            WebApiConfigHelper.ApiRoute(config.Routes, "video/album/{albumId}/title/{title}/update", "VideoAlbumApi", "UpdateAlbumTitle");

            WebApiConfigHelper.ApiRoute(config.Routes, "analytics/traffic/summary", "AnalyticsApi", "GetTrafficSummary");
            WebApiConfigHelper.ApiRoute(config.Routes, "analytics/traffic/summary/default", "AnalyticsApi", "GetDefaultTrafficSummary");
            WebApiConfigHelper.ApiRoute(config.Routes, "analytics/sources/summary", "AnalyticsApi", "GetSourcesSummary");
            WebApiConfigHelper.ApiRoute(config.Routes, "analytics/sources/summary/default", "AnalyticsApi", "GetDefaultSourcesSummary");

            WebApiConfigHelper.ApiRoute(config.Routes, "settings/yandex/auth", "SettingsApi", "RequestYandexOAuth");

            WebApiConfigHelper.ApiRoute(config.Routes, "temp/file/{id}/remove", "TempFileApi", "RemoveFile");

            WebApiConfigHelper.ApiRoute(config.Routes, "email/template/{name}/update", "EmailTemplateApi", "UpdateTemplate");

            WebApiConfigHelper.ApiRoute(config.Routes, "email/message/{mailId}/resend", "MailApi", "ReSendMail");
            WebApiConfigHelper.ApiRoute(config.Routes, "email/message/{mailId}/delete", "MailApi", "DeleteMail");

            WebApiConfigHelper.ApiRoute(config.Routes, "interface/strings/get", "InterfaceStringApi", "Get");
            WebApiConfigHelper.ApiRoute(config.Routes, "interface/strings/save", "InterfaceStringApi", "Save");
            WebApiConfigHelper.ApiRoute(config.Routes, "interface/strings/create", "InterfaceStringApi", "Create");

            WebApiConfigHelper.ApiRoute(config.Routes, "dev/db/check", "DeveloperApi", "CheckDB");
            WebApiConfigHelper.ApiRoute(config.Routes, "dev/db/update", "DeveloperApi", "UpdateDBConnections");
            WebApiConfigHelper.ApiRoute(config.Routes, "dev/widgets/get", "DeveloperApi", "GetWidgets");
            WebApiConfigHelper.ApiRoute(config.Routes, "dev/widgets/save", "DeveloperApi", "SaveWidgets");
            WebApiConfigHelper.ApiRoute(config.Routes, "dev/robots/save", "DeveloperApi", "SaveRobots");
            WebApiConfigHelper.ApiRoute(config.Routes, "dev/enter", "DeveloperApi", "EnterDevMode");

            WebApiConfigHelper.ApiRoute(config.Routes, "admin/redirect/get", "RedirectToPageRoutesApi", "GetRedirectToPageRouters");
            WebApiConfigHelper.ApiRoute(config.Routes, "admin/redirect/save", "RedirectToPageRoutesApi", "SaveRedirectToPageRouters");

            WebApiConfigHelper.ApiRoute(config.Routes, "orderform/{formId}/get", "OrderFormApi", "GetForm");
            WebApiConfigHelper.ApiRoute(config.Routes, "orderform/update", "OrderFormApi", "UpdateForm");
            WebApiConfigHelper.ApiRoute(config.Routes, "orderform/{formId}/delete", "OrderFormApi", "DeleteForm");
            WebApiConfigHelper.ApiRoute(config.Routes, "orderform/create", "OrderFormApi", "CreateForm");


            WebApiConfigHelper.ApiRoute(config.Routes, "formrequest/{id}/{state}/changestate", "FormRequestApi", "UpdateState");
            WebApiConfigHelper.ApiRoute(config.Routes, "formrequest/{id}/{state}/changepaymentstate", "FormRequestApi", "UpdatePaymentState");
        }