Example #1
0
        // 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);
            });
        }
Example #2
0
		/// <summary>
		/// 构造函数
		/// </summary>
		/// <param name="client">操作类</param>
		public TagInterface(Client client)
			: base(client)
		{
			api = new TagAPI(client);
		}
Example #3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="client">操作类</param>
 public TagInterface(Client client)
     : base(client)
 {
     api = new TagAPI(client);
 }