// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } app.UseRouting(); app.UseEndpoints(endpoints => { CookAPI.MapAPIEndpoints(endpoints); RecipeAPI.MapAPIEndpoints(endpoints); IngredientAPI.MapAPIEndpoints(endpoints); TagAPI.MapAPIEndpoints(endpoints); IngredientTagAPI.MapAPIEndpoints(endpoints); ShoppingListAPI.MapAPIEndpoints(endpoints); MealPlanAPI.MapAPIEndpoints(endpoints); }); }
/// <summary> /// 构造函数 /// </summary> /// <param name="client">操作类</param> public TagInterface(Client client) : base(client) { api = new TagAPI(client); }