From 68b9b0e8c8653fc2a995b9aaf6886894353ca8b7 Mon Sep 17 00:00:00 2001 From: mdnapo Date: Thu, 25 Apr 2024 21:13:35 +0200 Subject: [PATCH] Modified formatting for router generation --- MycroForge.CLI/Commands/MycroForge.Api.Generate.Router.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MycroForge.CLI/Commands/MycroForge.Api.Generate.Router.cs b/MycroForge.CLI/Commands/MycroForge.Api.Generate.Router.cs index 1fa2b42..720830f 100644 --- a/MycroForge.CLI/Commands/MycroForge.Api.Generate.Router.cs +++ b/MycroForge.CLI/Commands/MycroForge.Api.Generate.Router.cs @@ -45,8 +45,8 @@ public partial class MycroForge var main = await _context.ReadFile("main.py"); main += string.Join('\n', - $"\nfrom api.routers import {moduleName}", - $"app.include_router(prefix=\"/{name.Kebaberize()}\", router={moduleName}.router)\n" + $"\n\nfrom api.routers import {moduleName}", + $"app.include_router(prefix=\"/{name.Kebaberize()}\", router={moduleName}.router)" ); await _context.WriteFile("main.py", main); }